CentOS7配置阿里云yum源

1.下载第一个阿里云仓库文件
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
-O 参数 ,指定一个下载地址,且改名
2.配置第二个仓库文件 epel 额外仓库(redis,nginx,mongo,ipython)
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

3.清空原本yum缓存
yum clean all 
4.生成新的阿里云的yum缓存,加速下载预热数据
yum makecache

原文地址:https://www.cnblogs.com/QuestionsZhang/p/10607594.html