现在报这个错了
thrown in /www/workerman/Worker.php on line 2226
worker[none:12798] exit with status 65280
stream_socket_server(): unable to connect to tcp://0.0.0.0:12345 (Address in use) in file /www/workerman/Worker.php on line 2224
Fatal error: Uncaught Exception: Address in use in /www/workerman/Worker.php:2226
Stack trace:
56789 是什么端口?有启动监听服务么?
您好 56789是我随意找的一个端口 我防火墙开启了56789端口,nginx监听的,但是报stream_socket_server()不能连接的错误。是不是我启动监听的方式不对呀?如果不在nginx中监听的话 在 netstat -ant 中没有发现56789端口。
netstat -ant ,贴下结果呢
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:56789 0.0.0.0: LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0: LISTEN
tcp 0 0 192.168.1.100:53 0.0.0.0: LISTEN
tcp 0 0 192.168.2.1:53 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:12345 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:443 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:8000 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:1026 0.0.0.0: LISTEN
tcp 0 0 127.0.0.1:9000 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:8080 0.0.0.0: LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0: LISTEN
麻烦您看看
看不出什么问题。192.168.1.137连不上就用127.0.0.1呗
192.168.1.137 可能是错的地址
现在报这个错了
thrown in /www/workerman/Worker.php on line 2226
worker[none:12798] exit with status 65280
stream_socket_server(): unable to connect to tcp://0.0.0.0:12345 (Address in use) in file /www/workerman/Worker.php on line 2224
Fatal error: Uncaught Exception: Address in use in /www/workerman/Worker.php:2226
Stack trace:
0 /www/workerman/Worker.php(1517): Workerman\Worker->listen()
1 /www/workerman/Worker.php(1364): Workerman\Worker::forkOneWorkerForLinux(Object(Workerman\Worker))
2 /www/workerman/Worker.php(1338): Workerman\Worker::forkWorkersForLinux()
3 /www/workerman/Worker.php(1668): Workerman\Worker::forkWorkers()
4 /www/workerman/Worker.php(1617): Workerman\Worker::monitorWorkersForLinux()
5 /www/workerman/Worker.php(541): Workerman\Worker::monitorWorkers()
6 /www/workerman/push.php(75): Workerman\Worker::runAll()
7 {main}
https://www.workerman.net/doc/workerman/faq/workerman-start-fail.html
哦哦 谢谢呀 我现在弄好了 我把我2019年11月17日的workerman 与文件 都拿过来了就好了
https://www.workerman.net/search?keyword=stream_socket_client
一定能在这里找到解决方法
哦哦 谢谢呀