国外地址yum源下载慢,下到一半就断了,就这个原因就修改它为国内yum源地址

 

国内yum源:

阿里centos7 yum源:http://mirrors.aliyun.com/repo/Centos-7.repo

网易centos7 yum源:http://mirrors.163.com/.help/CentOS7-Base-163.repo

https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=3

 

以修改为阿里的yum源

 

1. 备份本地yum源

 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak 

 

2.获取阿里yum源配置文件

 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 

 

3.运行以下命令生成缓存 


yum clean all 

yum makecache 

 

OK。。。。。。

相关文章:

  • 2021-08-28
  • 2022-12-23
  • 2022-01-16
  • 2021-11-23
  • 2021-08-18
猜你喜欢
  • 2021-09-30
  • 2021-12-20
  • 2021-07-15
  • 2021-10-17
  • 2021-12-05
  • 2021-12-18
相关资源
相似解决方案