- 查看防火状态
1
2
3systemctl status firewalld
service iptables status
暂时关闭防火墙
1
2
3systemctl stop firewalld
service iptables stop永久关闭防火墙
1
2
3systemctl disable firewalld
chkconfig iptables off重启防火墙
1
2
3systemctl enable firewalld
service iptables restart永久关闭防火墙
1
chkconfig iptables on