mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
cd /etc/yum.repos.d
curl -O http://mirrors.aliyun.com/repo/Centos-6.repo
之后运行yum makecache生成缓存
cd /etc/yum.repos.d
curl -O http://mirrors.aliyun.com/repo/Centos-6.repo
之后运行yum makecache生成缓存