diff --git a/dev.php b/dev.php index 349868a..a37c5a6 100644 --- a/dev.php +++ b/dev.php @@ -8,7 +8,7 @@ 'SOCK_TYPE' => SWOOLE_TCP, 'RUN_MODEL' => SWOOLE_PROCESS, 'SETTING' => [ - 'worker_num' => 8, + 'worker_num' => swoole_cpu_num(), 'reload_async' => true, 'max_wait_time'=>3, 'document_root' => EASYSWOOLE_ROOT . '/Static',