最近重新装了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
curl -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
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo
- CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

本文介绍了一种有效提升CentOS系统更新速度的方法,通过更换为阿里云的国内镜像源,显著提高了软件包的下载速度。文章提供了针对不同版本CentOS(包括5、6、7)的具体操作步骤。
1378

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



