1.临时关闭selinux
setenforce 0
2.永久关闭selinux
vim /etc/selinux/config SELINUX=disabled
3.临时关闭防火墙
systemctl stop firewalld
4.永久关闭防火墙
systemctl disable firewalld