linux 服务器不能使用file_get_content

linux cooljun 2531℃ 0评论
  1. 查看php.ini里配置allow_url_fopen是否开启

  2. 在服务器上使用ping 外网ip,在ping 外网域名

  3. 如果ip能ping通,域名ping不同,说明服务器DNS设置错误  

  4. 在eth0里添加 DNS1=192.168.11.1

  5. 修改/etc/resolv.conf文件

       添加 nameserver=192.168.11.1

转载请注明:cooljun小窝 » linux 服务器不能使用file_get_content

如果你觉得这篇文章对你有帮助,请支持我继续更新网站 !捐赠本站
喜欢 (0)or分享 (0)

您必须 登录 才能发表评论!