CentOS-7配置yum镜像源
- 备份原本的yum镜像源
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
- 下载阿里云yum镜像源
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
- 清除系统所有的yum缓存
yum clean all
- 生成yum缓存
yum makecache