• 安装wget
    • yum install -y wget

       

  • 备份之前的源
    • mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

       

  • 下载阿里源
    • wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

       

  • 清理缓存
    • yum clean all

       

  • 生成缓存
    • yum makecache

       

  • 更新最新源设置
    • yum update -y

       

  • Centos7 wget 更换阿里源

相关文章:

  • 2021-10-25
  • 2021-07-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
猜你喜欢
  • 2021-10-02
  • 2021-09-27
  • 2022-12-23
  • 2021-12-06
  • 2021-05-27
  • 2021-11-15
  • 2021-12-15
相关资源
相似解决方案