PHP Warning: stream_socket_server(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /www/wwwroot/im.1234xiss.com/vendor/workerman/workerman/Worker.php on line 2255
Warning: stream_socket_server(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /www/wwwroot/im.1234xiss.com/vendor/workerman/workerman/Worker.php on line 2255
PHP Warning: stream_socket_server(): unable to connect to tcp://:0 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /www/wwwroot/im.1234xiss.com/vendor/workerman/workerman/Worker.php on line 2255
一般报这个错都是监听地址使用了域名、但是域名解析出了问题,所以解决方案是:
1、要么确保目标域名的DNS解析是合法有效的;
2、要么按照手册设置有效的监听地址: http://doc.workerman.net/worker/construct.html