GatewayWorker 出问题 错误代码如下
root@ecs-166197 ~]# cd /www/wwwroot/j.mtpo.com/GatewayWorker
[root@ecs-166197 GatewayWorker]# php start.php start -d
Workerman[start.php] start in DAEMON mode
[root@ecs-166197 GatewayWorker]# stream_socket_server(): unable to connect to tcp://0.0.0.0:8282 (Address already in use) in file /www/wwwroot/j.mtpo.com/GatewayWorker/vendor/workerman/workerman/Worker.php on line 2255
PHP Fatal error: Uncaught exception 'Exception' with message 'Address already in use' in /www/wwwroot/j.mtpo.com/GatewayWorker/vendor/workerman/workerman/Worker.php:2257
Stack trace:
#0 /www/wwwroot/j.mtpo.com/GatewayWorker/vendor/workerman/workerman/Worker.php(679): Workerman\Worker->listen()
#1 /www/wwwroot/j.mtpo.com/GatewayWorker/vendor/workerman/workerman/Worker.php(538): Workerman\Worker::initWorkers()
#2 /www/wwwroot/j.mtpo.com/GatewayWorker/start.php(37): Workerman\Worker::runAll()
#3 {main}
thrown in /www/wwwroot/j.mtpo.com/GatewayWorker/vendor/workerman/workerman/Worker.php on line 2257
Fatal error: Uncaught exception 'Exception' with message 'Address already in use' in /www/wwwroot/j.mtpo.com/GatewayWorker/vendor/workerman/workerman/Worker.php:2257
Stack trace:
#0 /www/wwwroot/j.mtpo.com/GatewayWorker/vendor/workerman/workerman/Worker.php(679): Workerman\Worker->listen()
#1 /www/wwwroot/j.mtpo.com/GatewayWorker/vendor/workerman/workerman/Worker.php(538): Workerman\Worker::initWorkers()
#2 /www/wwwroot/j.mtpo.com/GatewayWorker/start.php(37): Workerman\Worker::runAll()
#3 {main}
thrown in /www/wwwroot/j.mtpo.com/GatewayWorker/vendor/workerman/workerman/Worker.php on line 2257
[root@ecs-166197 GatewayWorker]#
2个回答
年代过于久远,无法发表回答
抢的一个华为的服务器。搭建了一个网站
又准备搞个websocket玩玩 结果完全按流程来的 说php.ini 有几个禁用函数我也去掉了 就是启动不起来
以前玩linux服务器 这个流程完全没问题 用华为的吊服务器就不行 用的也是centos的系统
报错如下
https://www.workerman.net/doc/workerman/faq/workerman-start-fail.html
Address already in use,端口被占用了
显示启动成功 但是还是链接不了 121.36.57.235 121.36.57.235
启动了 还是链接 不是
10,php:13
WebSocket furl:'ws://121.36.57.235:8282/',readystate:0,bufferedAmount:
e,onopen:null,onerror:null,...
binaryType:"blob"
bufferedAmount:0
extensions:"
onclose:null
onerror:null
onmessage:null
onopen:()=console.Log("websocket success!");
protocol:"
readystate:0
ur1:"ws://121.36.57.235:8282/"
8
WebSocket connection to 'ws://121.36.57.235:8282/'failed:
16.php:12@
Error in connection establishment:
net:ERR_CONNECTION_TIMED_OUT
http://j.mtpop.com/10.php 你看调试
你看worekrman文档吧,常见问题里啥都有
谢谢 安全组 问题 可以了