• 切换到/etc/yum.repos.d下
  • 使用命令:wget http://mirrors.aliyun.com/repo/Centos-7.repo下载阿里云的资源文件

如果没有wget工具,可以使用yum -y install wget下载安装

  • 使用命令:mv CentOS-Base.repo CentOS-Base.repo.bak 备份既有的配置文件
  • 使用命令:mv Centos-7.repo CentOS-Base.repo 把下载的文件重命名。

CentOS 7如何更换yum镜像源为阿里云

  • 然后依次执行下面的命令。

yum clean all

yum makecache

yum update

相关文章:

  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-15
  • 2021-11-02
猜你喜欢
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-02-10
  • 2021-12-14
  • 2021-12-02
  • 2022-12-23
相关资源
相似解决方案