报错
Workerman[start.php] start in DEBUG mode
Workerman[start.php] already running
/config/service.php
A项目
return [
'listen' => 'http://0.0.0.0:8787',
'transport' => 'tcp',
'context' => [],
'name' => 'webman',
'count' => cpu_count() * 4,
'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
];
B项目
return [
'listen' => 'http://0.0.0.0:8989',
'transport' => 'tcp',
'context' => [],
'name' => 'webman_1',
'count' => cpu_count() * 4,
'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
];
试试放在不同路径?
当然放不同的路径😂
两个项目的 webman.pid 内容相同导致的,里面是pid。删除其中一个
解决了,runtime目录删除后就好了, 感谢。🙇