CenOS更换为阿里云的源
按照步骤:
确保更换之前自己安装wget,若是没安装wget直接安装即可
yum list wget

yum -y install wget

首先备份
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
备份是不会有反应的
下载阿里云的yum源到/etc/yum.repos.d/
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

清除缓存
yum clean all
CentOS切换到阿里云源教程

本文介绍了如何将CentOS的默认源更换为阿里云的源,并通过下载软件验证了源切换的成功。
最低0.47元/天 解锁文章
4302

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



