Centos7在2024年6月30日正式停服,默认的官方仓库会失效,如果要继续使用操作系统,可以配置阿里云yum源,配置如下:
1、访问阿里云镜像网站:https://developer.aliyun.com/mirror/
2、找到并点击访问centos镜像仓库
3、备份原有仓库地址
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
4、配置新的软件源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo