ty-blogjava

统计

留言簿

阅读排行榜

评论排行榜

Centos关闭防火墙命令

Linux关闭防火墙命令

1) 永久性生效,重启后不会复原
开启:chkconfig iptables on
关闭:chkconfig iptables off

2) 即时生效,重启后复原
开启:service iptables start
关闭:service iptables stop

Centos参考:
centos 7:
systemctl stop firewalld.service #停止
systemctl disable firewalld.service #禁用
之前的版本:
service iptables stop #停止
chkconfig iptables off #禁用

posted on 2017-03-26 16:47 小勇 阅读(129) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: