CentOS使用yum install出现PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

一、通过ifconfg查看自己使用那块网卡在上网


一般是eth0

二、cd /etc/sysconfig/network-scripts/


查看自己网卡的配置
vi ifcfg-eht0

加入NDS1=8.8.8.8
修改ONBOOT=yes

三、service network restart 重启一下网络

相关文章

Centos下搭建性能监控Spotlight
CentOS 6.3下Strongswan搭建IPSec VPN
在CentOS6.5上安装Skype与QQ
阿里云基于centos6.5主机VPN配置
CentOS 6.3下配置multipah
CentOS安装、配置APR和tomcat-native