1、备份原有的配置文件
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
2、下载网易163的yum源配置文件
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
3、更新yum源
yum makecache
sudo yum update
修改完成
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
wget http://mirrors.163.com/.help/CentOS6-Base-163.repo
yum makecache
sudo yum update
修改完成