通过more /etc/*release* 查看系统版本
(需要下载对应的系统版本)
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo_bak
wget -O /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.aliyun.com/repo/
Centos-6.repo
wget -O /etc/yum.repos.d/CentOS-Base.repo
http://mirrors.aliyun.com/repo/
Centos-7.repo
转载于:https://www.cnblogs.com/linlianhuan/p/9923285.html