We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我的配置是 'http' => [ 'enable' => true, 'host' => '0.0.0.0', 'port' => 8081, 'worker_num' => swoole_cpu_num(), 'options' => [ 'pid_file' => runtime_path() . 'swoole.pid', //服务启动以后进程 ID 存放文件 'log_file' => runtime_path() . 'swoole.log', //Swoole 的日志文件 'task_worker_num' => 2, // 启动 2 个 Task 进程 'max_request' => 10, // 每个 Worker 处理 10 个请求后重启 'task_max_request' => 10, // 每个 Task 处理 10 个任务后重启 ], ],
The text was updated successfully, but these errors were encountered:
No branches or pull requests
我的配置是 'http' => [
'enable' => true,
'host' => '0.0.0.0',
'port' => 8081,
'worker_num' => swoole_cpu_num(),
'options' => [
'pid_file' => runtime_path() . 'swoole.pid', //服务启动以后进程 ID 存放文件
'log_file' => runtime_path() . 'swoole.log', //Swoole 的日志文件
'task_worker_num' => 2, // 启动 2 个 Task 进程
'max_request' => 10, // 每个 Worker 处理 10 个请求后重启
'task_max_request' => 10, // 每个 Task 处理 10 个任务后重启
],
],
The text was updated successfully, but these errors were encountered: