百度搜索: 网易源  点击进入网易开源镜像站 

1. 备份当前 repo 文件

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

2. 下载对应 repo 文件

wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

或者

curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo

3. 生成缓存

   yum clean all 

   yum makecache

 

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2021-11-15
  • 2021-06-04
  • 2022-12-23
猜你喜欢
  • 2021-05-29
  • 2022-03-06
  • 2022-12-23
  • 2021-11-26
  • 2021-12-06
  • 2021-12-15
  • 2022-02-03
相关资源
相似解决方案