1. cd /etc/yum.repos.dhtml
2. mv CentOS-Base.repo CentOS-Base.repo.backupcurl
3. curl -O http://mirrors.aliyun.com/repo/Centos-6.repopost
4.yum clean allurl
1. cd /etc/yum.repos.dhtml
2. mv CentOS-Base.repo CentOS-Base.repo.backupcurl
3. curl -O http://mirrors.aliyun.com/repo/Centos-6.repopost
4.yum clean allurl
转载于:https://www.cnblogs.com/vinzen/p/10075886.htmlhtm