webman部署网站,想使用.sock文件,主要是一台服务器上部署多套,使用端口会有点麻烦,所以想使用.sock文件。
return [
'listen' => 'unix://xxxx.sock',
'transport' => 'tcp',
'context' => [],
'name' => 'webman',
'count' => cpu_count() * 2,
'user' => '',
'group' => '',
'reusePort' => false,
'event_loop' => '',
'stop_timeout' => 2,
'pid_file' => runtime_path() . '/webman.pid',
'status_file' => runtime_path() . '/webman.status',
'stdout_file' => runtime_path() . '/logs/stdout.log',
'log_file' => runtime_path() . '/logs/workerman.log',
'max_package_size' => 10 * 1024 * 1024
];
参考上面配置设置unixsocket
谢谢