下载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
下载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