参考:
https://blog.csdn.net/HistoryCreator/article/details/78570711 https://yq.aliyun.com/ziliao/408380
1、备份系统yum源
cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
2、设置阿里云yum源
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3、添加EPEL源
wget -P /etc/yum.repos.d/ http://mirrors.aliyun.com/repo/epel-7.repo
4、清理缓存并生成新的缓存
yum clean all yum makecache
5、重新生成缓存
yum makecache
6、查看是否是阿里云配置
more CentOS-Base.repo
7、按个lrzsz,测试一下。
yum install lrzsz -y
原文地址:https://www.cnblogs.com/wangjianuo/p/9957061.html
时间: 2024-10-10 17:12:19