/etc/init.d/iptables stop

/etc/init.d/iptables stop
 
 
systemctl stop firewalld.service
 

[root@bigdata-server-01 myrestserver]# firewall-cmd --state
not running
[root@bigdata-server-01 myrestserver]# systemctl stop firewalld.service
[root@bigdata-server-01 myrestserver]# firewall-cmd --state
not running
[root@bigdata-server-01 myrestserver]# systemctl start firewalld.service
[root@bigdata-server-01 myrestserver]# firewall-cmd --state
running
[root@bigdata-server-01 myrestserver]# systemctl stop firewalld.service
[root@bigdata-server-01 myrestserver]# firewall-cmd --state

原文地址:https://www.cnblogs.com/rsapaper/p/7683424.html