通过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  
posted on 2018-11-07 16:21  咖啡猫来啦  阅读(572)  评论(0编辑  收藏  举报