CentOS 配置 阿里镜像源

  1. 若未安装wget,安装wget
    yum install -y wget
  2. 获取阿里云镜像repo
    wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
  3. 更新镜像源
    1 //清除缓存
    2 yum clean all
    3 //生成缓存
    4 yum makecache

     

posted @ 2022-09-18 17:28  猿学习  阅读(523)  评论(0编辑  收藏  举报