以守护进程daemon方式启动后,报错不能启动

进口邦德

报错不能打开stdoutFile文件
Fatal error: Uncaught Exception: Can not open stdoutFile /dev/null in /home/315sj/315sj_web_php/GatewayWorker/vendor/workerman/workerman/Worker.php:1272

还有个错误就是Warning-stream socket client: unable to connectto tcp: //120.27.1.189: 1238(Connection timed out)
Gateway::$registerAddress = '120.27.1.189:1238';这里的ip就是服务器的源ip地址 端口只要是没被占用就可以,前端html页面里的ws = new WebSocket("ws://120.27.1.189:8282");也是一样的吧

1432 1 0
1个回答

智佳思远

你的环境有问题吧,/dev/null 这个文件linux都有吧,咋会无法访问。
实在访问不了 https://www.workerman.net/doc/workerman/worker/stdout-file.html 按照这个设置成其它文件试下。

tcp: //120.27.1.189: 1238(Connection timed out 看起来是连接超时,感觉是安全组或没开放1238端口

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