Linux将yum源设置为阿里云的镜像源

第一步:备份原有镜像源

mv /etc/yum.repo.d/Centos-Base.repo /etc/yum.repo.d/Centos-Base.repo.bak 

第二步:下载阿里云的镜像源

wget -O /etc/yum.repo.d/Centos-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
//如果是cento 5的系统就将文件名改为Centos-5.repo

第三步 :重新设置缓存

yum clean all
yum makecache
原文地址:https://www.cnblogs.com/toward-the-sun/p/8036588.html