wget命令时报错:Name or service not known解决方法

ping www.baidu.com ping不通,报错
[root@localhost /]# ping www.baidu.com
ping: www.baidu.com: Name or service not known

按照这种方法,在/etc/resolv.conf文件首行加入namesever 8.8.8.8 保存并退出 就可以了
The DNS server seems out of order. You can use another DNS server such as 8.8.8.8. Put nameserver 8.8.8.8 to the first line of /etc/resolv.conf.


版权声明:本文为weixin_43919570原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。