配置阿里云 YUM 源:
1, 备份 #cd /etc/yum.repo.d/
- #mkdir repos
- #mv *.repo repos
2, 下载 #wget wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
3,#yum install -y epel-release.noarch 按装 epel 扩展源
4, 之后运行 yum makecache 生成缓存
来源: http://www.bubuko.com/infodetail-3108604.html