环境准备:
一台192.168.88.136Centos虚拟机
关闭防火墙:systemctl stop firewalld
永久关闭防火墙:systemctl disable firewalld
关闭selinux: setenforce 0
备份yum库:mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOSBase.repo.backup
配置yum源:wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo
配置epel: wget -O /etc/yum.repos.d/epel.repo https://mirrors.aliyun.com/repo/epel-7.repo