add
This commit is contained in:
parent
e526a103ce
commit
2bcb4b7c7f
|
@ -15,7 +15,7 @@ class HttpServer
|
||||||
$this->server = new Server("0.0.0.0",8085);
|
$this->server = new Server("0.0.0.0",8085);
|
||||||
//配置参数 https://wiki.swoole.com/#/server/setting
|
//配置参数 https://wiki.swoole.com/#/server/setting
|
||||||
$this->server->set(array(
|
$this->server->set(array(
|
||||||
'worker_num' => 1, //设置启动的 Worker 进程数。【默认值:CPU 核数】
|
'worker_num' => 2, //设置启动的 Worker 进程数。【默认值:CPU 核数】
|
||||||
'daemonize' => false // 使用docker 不需要设置守护进程
|
'daemonize' => false // 使用docker 不需要设置守护进程
|
||||||
));
|
));
|
||||||
//$this->server->on('request',function ($req,$res){});
|
//$this->server->on('request',function ($req,$res){});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user