`
Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /www/wwwroot/duxianmen.com/api/mc_server_rcon/src/Rcon.php on line 68
Warning: fsockopen(): unable to connect to xhn.server.xyc.red:35974 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /www/wwwroot/duxianmen.com/api/mc_server_rcon/src/Rcon.php on line 68
`
一直显示Rcon.php的第68行有问题,我怀疑是PHP的版本不对(我当时用的是PHP 5.6),所以我升级了版本(现在是PHP 7.4),但是依旧会报错。
求解决,挺急的 ╥﹏╥
` Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /www/wwwroot/duxianmen.com/api/mc_server_rcon/src/Rcon.php on line 68
Warning: fsockopen(): unable to connect to xhn.server.xyc.red:35974 (php_network_getaddresses: getaddrinfo failed: Name or service not known) in /www/wwwroot/duxianmen.com/api/mc_server_rcon/src/Rcon.php on line 68 `