猿问

workerman启动一直报错process terminated

php start.php start
Workerman[start.php] start in DEBUG mode
----------------------------------------------- WORKERMAN ------------------------------------------------
Workerman version:3.5.15          PHP version:7.1.26-1+ubuntu16.04.1+deb.sury.org+1
------------------------------------------------ WORKERS -------------------------------------------------
proto   user            worker                listen                        processes    status           
tcp     vagrant         ChatBusinessWorker    none                          4             [OK]            
tcp     vagrant         ChatGateway           websocket://127.0.0.1:9526    4             [OK]            
tcp     vagrant         Register              text://127.0.0.1:1239         1             [OK]            
tcp     vagrant         globalDataServer      frame://0.0.0.0:2207          1             [OK]            
----------------------------------------------------------------------------------------------------------
Press Ctrl+C to stop. Start success.
Worker[3078] process terminated
Worker[3075] process terminated
Worker[3076] process terminated
Worker[3077] process terminated
Worker[3086] process terminated
Worker[3085] process terminated
Worker[3088] process terminated
Worker[3087] process terminated
Worker[3092] process terminated
Worker[3089] process terminated
Worker[3090] process terminated
Worker[3091] process terminated
Worker[3096] process terminated
Worker[3098] process terminated
Worker[3097] process terminated
Worker[3099] process terminated
Worker[3101] process terminated
^CWorkerman[start.php] stopping ...
Exception: getAllGatewayAddressesFromRegister fail. tcp://127.0.0.1:1239 return false in /home/vagrant/website/websocket/vendor/workerman/gatewayclient/Gateway.php:834
Stack trace:

============补充========
这是log文件

米琪卡哇伊
浏览 6338回答 1
1回答

梦里花落0921

worker里的代码有异常或有die,exit等导致进程结束,检查workerman日志文件
随时随地看视频慕课网APP
我要回答