toward-the-sun

第一步:备份原有镜像源

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

 

分类:

技术点:

相关文章: