国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

webman部署能使用.sock的文件么?

sparks

問題描述

webman部署網(wǎng)站,想使用.sock文件,主要是一臺服務(wù)器上部署多套,使用端口會有點麻煩,所以想使用.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
];
1307 1 1
1個回答

walkor 打賞
return [
    'listen' => 'unix:///xxxx.sock',                 // 注意unix:后有三個斜線 unix:///
    'protocol' => Workerman\Protocols\Http::class,   // 注意加一行這個配置
    '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
];

參考上面配置設(shè)置unixsocket

年代過于久遠,無法發(fā)表回答
??