1、备份系统源
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.bak
2、设置默认源为163
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
mv CentOS6-Base-163.repo CentOS-Base.repo
3、执行yum源更新
yum clean all // 清除以前的缓存
yum makecache // 重建缓存
yum update
4,除了网易之外,国内还有其他不错的yum源,比如中科大和搜狐的,大家可以根据自己需求下载
中科大的yum源:
wget http://centos.ustc.edu.cn/CentOS-Base.repo
sohu的yum源
wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo