報錯不能打開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就是服務(wù)器的源ip地址 端口只要是沒被占用就可以,前端html頁面里的ws = new WebSocket("ws://120.27.1.189:8282");也是一樣的吧
你的環(huán)境有問題吧,/dev/null
這個文件linux都有吧,咋會無法訪問。
實在訪問不了 http://www.wtbis.cn/doc/workerman/worker/stdout-file.html 按照這個設(shè)置成其它文件試下。
tcp: //120.27.1.189: 1238(Connection timed out
看起來是連接超時,感覺是安全組或沒開放1238端口