linux 防火墙查看

时间财富 2019-09-20阅读人数:743
00:00 / 01:00
1、使用工具,链接Linux系统。
2、输入用户名,和密码,连接到服务器。
3、连接服务器后,输入语句service iptables status,回车,会显示防火墙状态。
4、输入语句chkconfig iptables on,可以开启防火墙。或者使用语句chkconfig iptables off,关闭防火墙,需要重启后生效。
5、如果想要即可生效,可以使用语句service iptables start开启防火墙,或者语句service iptables stop关闭,关闭或者开启防火墙后,查询防火墙状态,可以看到相应的变化。

今日热点

猜你关注