解决因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位网友发表了看法:
发表评论