CentOS7关闭防火墙和SELinux
关闭防火墙
临时关闭防火墙
systemctl stop firewalld
临时打开防火墙
systemctl start firewalld
防火墙开机关闭
systemctl disable firewalld
防火墙开机启动
systemctl enable firewalld
查看防火墙状态
systemctl status firewalld
关闭selinux
临时关闭SELinux
setenforce 0
临时打开SELinux
setenforce 1
开机关闭SELinux
vi /etc/selinux/config
修改"SELINUX=disabled"为"SELINUX=disabled"
查看SELinux状态
getenforce