Centos 换源,停用fastestmirror插件
侧边栏壁纸
  • 累计撰写 62 篇文章
  • 累计收到 47 条评论

Centos 换源,停用fastestmirror插件

Skycyan
2020-11-30 / 0 评论 / 149 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2020年11月30日,已超过1635天没有更新,若内容或图片失效,请留言反馈。

1.首先备份原来的cent os官方yum源

cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak

2.获取阿里的yum源覆盖本地官方yum源

wget http://mirrors.aliyun.com/repo/Centos-7.repo

3.清理旧包

yum clean all

4.重新生成缓存

yum makecache

停用fastestmirror插件

 vi /etc/yum/pluginconf.d/fastestmirror.conf

修改内容 enabled = 1//由1改为0

1

评论 (0)

取消