查看防火墙状态

systemctl status firewalld

centos7:service iptables status

即使生效,临时关闭

systemctl stop firewalld

service iptables stop

永久关闭防火墙

chkconfig iptables off

centos7:systemctl disable firewalld (停止并禁用开机启动)

启动防火墙

systemctl start firewalld

重启防火墙

systemctl enable firewalld (开机启动)

service iptables restart


扫码关注公众号《ipoo》

ipoo
ipoo