From 2bcb4b7c7f65ec1725208d8a612c344579bc9cec Mon Sep 17 00:00:00 2001 From: lq <13849061902@qq.com> Date: Thu, 23 May 2024 10:51:16 +0800 Subject: [PATCH] add --- core/server/HttpServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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){});