Centos7 关闭防火墙,查看防火墙,启动防火墙
查看防火墙
firewall-cmd --state
停止防火墙
systemctl stop firewalld.service
禁止防火墙开机启动
systemctl disable firewalld.service
开启防火墙
systemctl start firewalld.service
firewall-cmd --state
systemctl stop firewalld.service
systemctl disable firewalld.service
systemctl start firewalld.service