1、进入阿里云镜像的官网,点击centos的帮助 链接.OPSX

2.下载阿里云提供的centos的repos文档,通过xftp软件把这个文档拉过去linux里

3.备份原linux的repos文档
# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
4.把拉到linux的repos文档替换掉原linux的repos文档
5.yum makecache生成缓存
1、进入阿里云镜像的官网,点击centos的帮助 链接.OPSX
2.下载阿里云提供的centos的repos文档,通过xftp软件把这个文档拉过去linux里
3.备份原linux的repos文档
# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
4.把拉到linux的repos文档替换掉原linux的repos文档
5.yum makecache生成缓存
本文标题:linux换yum源!
本文链接:https://www.haomeiwen.com/subject/ixhpcftx.html
网友评论