最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
linux配置防火墙,开启80端口、3306端口详解
时间:2016-11-04 编辑:简简单单 来源:一聚教程网
防火墙的规则文件在:
/etc/sysconfig/iptables
通过vi打开配置文件
在里面添加两行:
-A INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT
-A INPUT -m state –state NEW -m tcp -p tcp –dport 3306 -j ACCEPT
添加后结果是这样的:
欧了。现在重启下防火墙:
service iptables restart
附上几条防火墙命令:
service iptables status # 查看iptables状态
service iptables restart # iptables服务重启
service iptables stop # iptables服务禁用
-
上一个: SVN日常管理命令详解
-
下一个: Linux下SVN中authz配置文件
相关文章
- Linux配置防火墙,开启80端口、3306端口的步骤 11-02
- win11内核隔离和内存完整性介绍 10-31
- win10全屏缩放设置教程 10-31
- win10系统备份出错解决教程 10-31
- win10打开软件每次都要询问解决教程 10-31
- win10更新驱动后设备出现异常解决教程 10-31