容器技术交流

 找回密码
 立即注册
查看: 2985|回复: 2

php函数不能采集

[复制链接]
发表于 2012-10-24 17:22:57 | 显示全部楼层 |阅读模式
file_get_contents() [function.file-get-contents]: Couldn't resolve host name
提示这个错误,在论坛搜帖子,说是/etc/resolv.conf 的问题,但是这个具体要怎么设置呢,高手赐教
发表于 2012-10-24 20:59:22 | 显示全部楼层
将内容修改成
nameserver 8.8.8.8
nameserver 208.67.222.222
 楼主| 发表于 2012-10-25 13:04:56 | 显示全部楼层
爱洞特漏 发表于 2012-10-24 20:59
将内容修改成
nameserver 8.8.8.8
nameserver 208.67.222.222

谢谢,好用了
顺便问问,我从别的一个朋友那里拷贝的这个文件内容(他也是自己的路),不好用
内容:
nameserver 10.242.252.8
nameserver 10.242.252.66
你的这俩IP百度查了下是美国的,这东西可以随便写吗?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-8-22 07:04 , Processed in 0.027164 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表