1.进入yum源配置目录
cd /etc/yum.repos.d
2.备份系统自带的yum源(以网易的安装源为例)
mv CentOS-Base.repo CentOS-Base.repo.bk
下载163网易的yum源:
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
3.更新玩yum源后,执行下边命令更新yum配置,使操作立即生效
yum makecache
4.国内较好的安装源
4.1 网易的yum源: wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
4.2 中科大的yum源:wget http://centos.ustc.edu.cn/CentOS-Base.repo
4.3 sohu的yum源:wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo