Centos6 [Errno 14] PYCURL ERROR 6 解决方案
0 /修改 /etc/resolv.conf
默认文件是这样的(有可能是升级过程中文件被覆盖还原)
1 2 3 4 5 6 7 8 |
# generated by NetworkManager, do not edit! # No nameservers found; try putting DNS servers into your # ifcfg files in /etc/sysconfig/network-scripts like so: # # DNS1=xxx.xxx.xxx.xxx # DNS2=xxx.xxx.xxx.xxx # SEARCH=lab.foo.com bar.foo.com |
添加两条DNS服务器 一般都添加谷歌
1 2 3 4 5 6 7 8 9 10 |
# generated by NetworkManager, do not edit! # No nameservers found; try putting DNS servers into your # ifcfg files in /etc/sysconfig/network-scripts like so: # # DNS1=xxx.xxx.xxx.xxx # DNS2=xxx.xxx.xxx.xxx # SEARCH=lab.foo.com bar.foo.com nameserver 8.8.8.8 nameserver 8.8.4.4 |