yum换源

1、备份本地yum源

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

2、获取阿里yum源

wget  -O  /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

 

posted @ 2019-04-14 00:23  cat.sword  阅读(205)  评论(0编辑  收藏  举报