Linux的防火墙的关闭

1、查看防火墙规则

vim /etc/sysconfig/iptables

放开某个端口号不被防火墙拦截,适用于部署tomcat,nginx等之类的软件


设置完成后,重启防火墙:serviceiptables restart   查看状态service iptables status

2、关闭防火墙

service iptables stop

3、禁止防火墙关机自启动

chkconfig iptables  off 或 on chkconfig  iptables --list  查看自启动状态列表


注意:在实际工作当中,大数据集群一般都是放置在内网当中,通过跳板机进行连接,所以一般都是直接关闭防火墙即可,但是在实际工作中,web服务器关闭防火墙一定要谨慎,避免服务器感染病毒





猜你喜欢

转载自blog.csdn.net/weixin_42295141/article/details/81037977