启动后log文件一直在写入,启动也没有报错
Workerman start in DAEMON mode
---------------------------------------------- WORKERMAN -----------------------------------------------
Workerman version:3.5.15 PHP version:7.1.23
----------------------------------------------- WORKERS ------------------------------------------------
proto user worker listen processes status
tcp root ChatBusinessWorker none 4
tcp root ChatGateway websocket://0.0.0.0:9526 4
tcp root Register text://0.0.0.0:1238 1
tcp root globalDataServer frame://0.0.0.0:2207 1
--------------------------------------------------------------------------------------------------------
Input "php start.php stop" to stop. Start success.
status
----------------------------------------------GLOBAL STATUS----------------------------------------------------
Workerman version:3.5.15 PHP version:7.1.23
start time:2019-01-21 12:07:42 run 0 days 0 hours
11167 N/A websocket://0.0.0.0:9526 ChatGateway N/A N/A N/A N/A N/A
11168 N/A websocket://0.0.0.0:9526 ChatGateway N/A N/A N/A N/A N/A
11169 N/A websocket://0.0.0.0:9526 ChatGateway N/A N/A N/A N/A N/A
11170 N/A websocket://0.0.0.0:9526 ChatGateway N/A N/A N/A N/A N/A
11171 N/A text://0.0.0.0:1238 Register N/A N/A N/A N/A N/A
11172 N/A frame://0.0.0.0:2207 globalDataServer N/A N/A N/A N/A N/A
11436 N/A none ChatBusinessWorker N/A N/A N/A N/A N/A
11437 N/A none ChatBusinessWorker N/A N/A N/A N/A N/A
11438 N/A none ChatBusinessWorker N/A N/A N/A N/A N/A
11439 N/A none ChatBusinessWorker N/A N/A N/A N/A N/A
----------------------------------------------PROCESS STATUS---------------------------------------------------
Summary 0M - - 0 0 0 0 0
connections
--------------------------------------------------------------------- WORKERMAN CONNECTION STATUS --------------------------------------------------------------------------------
PID Worker CID Trans Protocol ipv4 ipv6 Recv-Q Send-Q Bytes-R Bytes-W Status Local Address Foreign Address
11167 ChatGateway 1 tcp Text 1 0 0B 0B 0B 71B ESTABLISHED 127.0.0.1:40306 127.0.0.1:1238
11171 Register 1 tcp Text 1 0 0B 0B 71B 0B ESTABLISHED 127.0.0.1:1238 127.0.0.1:40298
11171 Register 5 tcp Text 1 0 0B 0B 71B 0B ESTABLISHED 127.0.0.1:1238 127.0.0.1:40306
11171 Register 6 tcp Text 1 0 0B 0B 71B 0B ESTABLISHED 127.0.0.1:1238 127.0.0.1:40308
11171 Register 7 tcp Text 1 0 0B 0B 71B 0B ESTABLISHED 127.0.0.1:1238 127.0.0.1:40310
11171 Register 375 tcp Text 1 0 0B 0B 0B 0B ESTABLISHED 127.0.0.1:1238 127.0.0.1:42890
11171 Register 378 tcp Text 1 0 0B 0B 0B 0B ESTABLISHED 127.0.0.1:1238 127.0.0.1:42912
11171 Register 379 tcp Text 1 0 0B 0B 0B 0B ESTABLISHED 127.0.0.1:1238 127.0.0.1:42916
11171 Register 380 tcp Text 1 0 0B 0B 0B 0B ESTABLISHED 127.0.0.1:1238 127.0.0.1:42920
11170 ChatGateway 1 tcp Text 1 0 0B 0B 0B 71B ESTABLISHED 127.0.0.1:40298 127.0.0.1:1238
11169 ChatGateway 1 tcp Text 1 0 0B 0B 0B 71B ESTABLISHED 127.0.0.1:40308 127.0.0.1:1238
11168 ChatGateway 1 tcp Text 1 0 0B 0B 0B
一般都是程序里使用了 exit 或 die 所致
感谢回复,不过查看了代码,没有发现有这两个退出
那就看一下workerman.log,是不是有异常报错导致进程退出了。
只要一启动就是这个无限刷“2019-01-21 11:55:19 pid:10128 Worker[10128] process terminated
2019-01-21 11:55:19 pid:10129 Worker[10129] process terminated
2019-01-21 11:55:19 pid:10130 Worker[10130] process terminated
2019-01-21 11:55:19 pid:10132 Worker[10132] process terminated
”
我把能想到的几个可能主要原因集中列下:
请问这个问题有解决吗,我也遇见了