每次更改reload都会打印出一堆的worker exit with status 9,正常吗

cfftony

系统是Mac M1芯片

➜ webman php start.php start
Workerman[start.php] start in DEBUG mode
----------------------------------------- WORKERMAN -----------------------------------------
Workerman version:4.0.30 PHP version:7.4.27
------------------------------------------ WORKERS ------------------------------------------
proto user worker listen processes status
tcp tony webman http://0.0.0.0:8787 20 [OK]
tcp tony monitor none 1 [OK]

Press Ctrl+C to stop. Start success.
/Users/tony/Documents/workspace/webman/app/controller/User.php update and reload
Workerman[start.php] reloading
worker[webman:58518] exit with status 9
worker[webman:58519] exit with status 9
worker[webman:58520] exit with status 9
worker[webman:58521] exit with status 9
worker[webman:58522] exit with status 9
worker[webman:58523] exit with status 9
worker[webman:58524] exit with status 9
worker[webman:58525] exit with status 9
worker[webman:58526] exit with status 9
worker[webman:58527] exit with status 9
worker[webman:58528] exit with status 9
worker[webman:58529] exit with status 9
worker[webman:58530] exit with status 9
worker[webman:58535] exit with status 9
worker[webman:58537] exit with status 9
worker[webman:58603] exit with status 9
worker[webman:58601] exit with status 9
worker[webman:58598] exit with status 9
worker[webman:58595] exit with status 9
worker[webman:58593] exit with status 9
worker[webman:58591] exit with status 9
worker[webman:58589] exit with status 9
worker[webman:58584] exit with status 9
worker[webman:58582] exit with status 9
worker[webman:58580] exit with status 9
worker[webman:58578] exit with status 9
worker[webman:58576] exit with status 9
worker[webman:58574] exit with status 9
worker[monitor:58544] exit with status 9
worker[webman:58543] exit with status 9
worker[webman:58542] exit with status 9
worker[webman:58541] exit with status 9
worker[webman:58540] exit with status 9
worker[webman:58539] exit with status 9

1717 1 0
1个回答

walkor 打赏

20个进程应该不会有这么多进程打印才对。
换个服务器试下,看下是不是环境问题

  • cfftony 2022-03-18

    是我本机的开发环境,跟芯片有关吗,是Mac M1芯片

  • walkor 2022-03-18

    这个我不确定。直接创建一个空的webman项目跑下试下。

  • cfftony 2022-03-18

    没找到好办法,因为是开发环境,所以先把server.php中的count改成1,要不然每次更改代码都得等20个woker全部打印一遍exit with status 9才生效

  • cfftony 2022-03-18

    空的webman项目也是这样,先把count改成1,这样修改代码后生效快一些

年代过于久远,无法发表回答
×
🔝