centos7 配置阿里云yum源

下载yum源
yum -y install wget
cd  /etc/yum.repos.d/
wget  http://mirrors.aliyun.com/repo/Centos-7.repo


备份系统yum源,使用阿里云yum源
mv  CentOs-Base.repo CentOs-Base.repo.bak
mv  Centos-7.repo CentOs-Base.repo


执行yum源更新命令
yum clean all
yum makecache
yum update

 

posted @ 2018-05-03 16:14  走走~停停  阅读(151)  评论(0编辑  收藏  举报