centos7修改yum源为阿里源

cd /etc/yum.repos.d
sudo mv CentOS-Base.repo CentOS-Base.repo.bak
sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache

 

posted @ 2017-12-28 09:09  yudis  阅读(68)  评论(0编辑  收藏  举报