liunx防火墙命令

如果chkconfig iptables off 不好用就用一下命令

systemctl stop firewalld.service/systemctl start firewalld.service

这是由于centos从7开始默认用的是firewalld,这个是基于iptables的,虽然有iptables的核心,但是iptables的服务是没安装的。所以你只要停止firewalld服务即可。所以用以下命令保存

猜你喜欢

转载自blog.csdn.net/mjf853912229/article/details/85777315