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

第三步 :从新设置缓存spa

yum clean all
yum makecache
相关文章
相关标签/搜索