解决Centos6.5的yum 源问题
‘Loading mirror speeds from cached hostfile
http://mirrors.aliyun.com/centos-vault/6.10/os/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 6 - “Couldn’t resolve host ‘mirrors.aliyun.com’”
Trying other mirror.’
1.在/etc/yum.repos.d 下替换 CentOS-Base.repo
文件会一并上传
2. 生成缓存
yum clean all && yum makecache
3.如果还出现错误则修改 /etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes
NM_CONTROLLED=no
然后关机重启
4.尝试是否可以ping www.baidu.com
若可以则yum源应该可以使用了
若是ping不通则 vim /etc/resolv.conf
修改为
nameserver 8.8.8.8