阿里云地址
https://developer.aliyun.com/mirror/
cd /etc/yum.repos.d/ && mkdir bak
mv *.repo *repo.rpmnew ./bak/
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
#或者
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
#进入目录
cd /etc/yum.repos.d/
wget https://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo
#或者
cd /etc/yum.repos.d/
wget https://mirrors.aliyun.com/repo/epel-7.repo
yum clean all
yum makecache
yum install -y httpd