最近尝试了几个源,速度都比较慢,有的还已经失效了,阿里云质量不错。
来自:http://www.centoscn.com/CentOS/config/2015/0416/5189.html
阿里云是最近新出的一个镜像源。得益与阿里云的高速发展,这么大的需求,肯定会推出自己的镜像源。
阿里云Linux安装镜像源地址:http://mirrors.aliyun.com/
CentOS系统更换软件安装源
第一步:备份你的原镜像文件,以免出错后可以恢复。
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
第二步:下载新的CentOS-Base.repo 到/etc/yum.repos.d/
CentOS 5
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo
CentOS 6
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
第三步:运行yum makecache生成缓存
yum clean all
yum makecache
本文介绍如何配置阿里云提供的CentOS镜像源,以提高软件包的下载速度。文章分为三步指导读者完成从备份原有镜像文件到下载新镜像文件并生成缓存的过程。
3358

被折叠的 条评论
为什么被折叠?



