gatewayworker centos 背景运行不到1小数stream_socket_client(): unable to connect to tcp://127.0.0.1:2900

ycl

gatewayworker nohup php start.php start >gateway.log 2>&1 & ;
不到1小时报错
运行环境centos7 ,有知道原因的吗?
截图

............$message...................PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2901 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755

Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2901 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755
PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2900 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755

Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2900 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755
2022-09-27 05:30:23 8.134.85.72 7f0000010b550000001b收到消息: �

是平台发送消息

............$message...................

string(1) "�"

............$message...................PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2901 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755

Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2901 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755
PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2900 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755

Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2900 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755
2022-09-27 05:31:23 8.134.85.72 7f0000010b550000001b收到消息: �

是平台发送消息

............$message...................

string(1) "�"

............$message...................PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2901 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755

Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2901 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755
PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2900 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755

Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1:2900 (Connection refused) in /www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755
2022-09-27 05:31:55 8.134.85.72 7f0000010b550000001b收到消息: �

是平台发送消息

............$message...................

string(1) "�"

1378 1 0
1个回答

six

直接 php start.php start -d 守护进程运行,用不着nohup

  • 暂无评论
年代过于久远,无法发表回答
×
🔝