#### 问题描述
早上发现workerman服务报了这个错误,服务异常了
think\exception\ErrorException: stream_socket_client(): php_network_getaddressesfailed: Name or service not known
vendor/workerman/workerman/Connection/AsyncTcpConnection.php(197): stream_socket_client
#### 问题描述
[2024-05-13 11:21:27] default.ERROR: stream_socket_client(): php_network_getaddresses: getaddrinfofor https failed: Name or service not known [] []
[2024-05-13 11:21:27] default.ERROR: stream_socket_clientgetaddrinfo for https failed: Name or service not known [] []
[2024-05-13 11:22:12] default.ERROR: stream_socket_clientgetaddrinfo for https failed: Name or service not known [] []
[2024-05-13 11:22:12] default.ERROR: stream_socket_clientgetaddrinfo for https failed: Name or service not known [] []
[2024-05-13 11:22:12] default.ERROR: stream_socket_client
workerman-jsonrpc在本地测试成功了,部署到服务器上,服务端运行成功,但是客户端报错stream_socket_client(): unable to connect to tcp://127.0.0.1stream_socket_client(): unable to connect to tcp://127.0.0.1:2015 (Connection refused)。
服务端代码
!
$message...................PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1www/wwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755
Warning: stream_socket_clientwwwroot/GatewayWorker/vendor/workerman/gateway-worker/src/Lib/Gateway.php on line 755
PHP Warning: stream_socket_client$message...................PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1$message...................PHP Warning: stream_socket_client(): unable to connect to tcp://127.0.0.1