文章详情
服务器操作系统CentOS 7已于2024年6月30日停止维护EOL(End of Life)后,官方yum源已经失效,如果在之后还想正常使用Centos 7 系列服务器系统,那么需要通过修改目前可用的yum源来微服务器提供软件资源。
下面我们为CentOS 7用户提供了修改yum源为阿里云yum的方法,用户按流程操作即可。
1.安装Wget
yum -y install wget
2.备份本地yum源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
3.获取阿里yum源配置文件
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
4.更新yum缓存
yum makecache
版权:
转载请注明出处:https://www.imoguo.com/support/468.html
还没有评论呢,快来抢沙发~