cd /etc/yum.repos.d 
备份旧的配置文件:mv CentOS-Base.repo CentOS-Base.repo.bak 
下载阿里源的文件: wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 
清理缓存 
yum clean all 
重新生成缓存 
yum makecache

相关文章:

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