Linux系统怎样关闭防火墙
更新:HHH   时间:2023-1-7


这篇文章将为大家详细讲解有关Linux系统怎样关闭防火墙,文章内容质量较高,因此小编分享给大家做个参考,希望大家阅读完这篇文章后对相关知识有一定的了解。

在Linux系统中搭建集群为了保证进程之间的通信需要把防火墙关闭,那么如何关闭防火墙?

1:查看防火状态

systemctl status firewalld

service  iptables status

2:暂时关闭防火墙

systemctl stop firewalld

service  iptables stop

3:永久关闭防火墙

systemctl disable firewalld

chkconfig iptables off

4:重启防火墙

systemctl enable firewalld

service iptables restart  

5:永久关闭后重启

//暂时还没有试过

chkconfig iptables on 

关于Linux系统怎样关闭防火墙就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

返回开发技术教程...