启动workerman报错

luscio

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

3125 1 0
1个回答

phpcreeper

一般报这个错都是监听地址使用了域名、但是域名解析出了问题,所以解决方案是:
1、要么确保目标域名的DNS解析是合法有效的;
2、要么按照手册设置有效的监听地址: http://doc.workerman.net/worker/construct.html

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