电脑疯子技术论坛|电脑极客社区

 找回密码
 注册

QQ登录

只需一步,快速开始

[linux教程] Linux关闭防火墙操作讲解

[复制链接]
zhaorong 发表于 2018-7-17 11:23:57 | 显示全部楼层 |阅读模式

1、查看防火墙规则

vim /etc/sysconfig/iptables

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

20180714140159652.png


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

2、关闭防火墙

serviceiptables stop

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

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

20180714140200653.png


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

20180714140201660.png


您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|VIP|电脑疯子技术论坛 ( Computer madman team )

GMT+8, 2025-2-2 21:52

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表