#### 問(wèn)題描述
早上發(fā)現(xiàn)workerman服務(wù)報(bào)了這個(gè)錯(cuò)誤,服務(wù)異常了
think\exception\ErrorException: stream_socket_client(): php_network_getaddressesfailed: Name or service not known
vendor/workerman/workerman/Connection/AsyncTcpConnection.php(197): stream_socket_client
#### 問(wèn)題描述
[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在本地測(cè)試成功了,部署到服務(wù)器上,服務(wù)端運(yùn)行成功,但是客戶端報(bào)錯(cuò)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)。
服務(wù)端代碼
!
$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