临时关闭selinux。
bash
setenforce 0 #临时关闭selinux
getenforce #查看是否关闭

配置文件中彻底关闭selinux。
bash
vim /etc/selinux/config

bash
SELINUX=disabled

重启系统后才能生效。