1、CentOS7默认是从官方下载软件的,改为从阿里云网站下载
curl -s -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
2、配置第三方epel源更新地址
#EPEL (Extra Packages for Enterprise Linux), 是由 Fedora Special Interest Group 维护的 #Enterprise Linux(RHEL、CentOS)中经常用到的包。
curl -s -o /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo