关闭selinux

#临时关闭
setenforce 0
#永久关闭,将SELINUX=disabled ,需要重启后生效
vi /etc/selinux/config

配置yum源

yum install -y wget
cd /etc/yum.repos.d
mv CentOS-Base.repo CentOS-Base.repo.bak
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
yum update