解决因Centos7停止服务导致yum不可用的问题

备份

mkdir -p /etc/yum.repos.d/backup
mv /etc/yum.repos.d/*.repo /etc/yum.repos.d/backup/

下载阿里云镜像

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

清空重建缓存

yum clean all
yum makecache


EPEL:https://developer.aliyun.com/mirror/epel

已有1位网友发表了看法:

1L访客 2025-04-07 16:25:01 回复
https://developer.aliyun.com/mirror/epel

发表评论

必填

选填

选填

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。