在服务器上php执行某些远程函数出错

Warning: imagecreatefromjpeg(): php_network_getaddresses: getaddrinfo failed: Name or service not known

warning: imagecreatefromjpeg(http://img.alicdn.com/imgextra/i3/728443962/TB20Z.qXVXXXXa2XXXXXXXXXXXX-728443962.jpg): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in

服务器DNS解析不了域名

我晕 

这个问题就是dns配置的不对

vi /etc/resolv.conf修改dns 

 好吧是我自己搞错了  禁用所有端口的时候  一定要开22 53 80 3690 3306

 

你可能感兴趣的:(PHP)