過程如下:
cd /etc
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.back #建議備份或者改名
wget -O CentOS-Base.repohttp://mirrors.aliyun.com/repo/Centos-7.repo
yum makecache
阿裡源各個linux版本對應源查看地址:
http://mirrors.aliyun.com/repo/
http://xxxxxx/Linuxjc/1134118.html TechArticle