1. cd /etc/yum.repos.d
2. mv CentOS-Base.repo CentOS-Base.repo.backup
3. curl -O http://mirrors.aliyun.com/repo/Centos-6.repo
4.yum clean all
1. cd /etc/yum.repos.d
2. mv CentOS-Base.repo CentOS-Base.repo.backup
3. curl -O http://mirrors.aliyun.com/repo/Centos-6.repo
4.yum clean all
转载于:https://www.cnblogs.com/vinzen/p/10075886.html