diff --git a/core/server/HttpServer.php b/core/server/HttpServer.php index 2210964..c87b073 100644 --- a/core/server/HttpServer.php +++ b/core/server/HttpServer.php @@ -15,7 +15,7 @@ class HttpServer $this->server = new Server("0.0.0.0",8085); //配置参数 https://wiki.swoole.com/#/server/setting $this->server->set(array( - 'worker_num' => 1, //设置启动的 Worker 进程数。【默认值:CPU 核数】 + 'worker_num' => 2, //设置启动的 Worker 进程数。【默认值:CPU 核数】 'daemonize' => false // 使用docker 不需要设置守护进程 )); //$this->server->on('request',function ($req,$res){});