centos配置阿里源

阿里镜像官方地址http://mirrors.aliyun.com/
cd /etc/yum.repos.d/
wget http://mirrors.aliyun.com/repo/Centos-7.repo
mv CentOs-Base.repo CentOs-Base.repo.bak //备份系统原来的网络源文件
mv Centos-7.repo CentOs-Base.repo //将阿里源设置为默认网络源

禁止升级内核:

执行yum源更新:

yum clean all //清理yum缓存 
yum makecache //将服务器软件包信息缓存至本地,提高搜索安装效率 
yum update
原文地址:https://www.cnblogs.com/seaBiscuit0922/p/11944039.html