CentOS7防火墙关闭开启

Posted 倔强的老铁

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7防火墙关闭开启相关的知识,希望对你有一定的参考价值。

systemctl stop firewalld.service    #关闭防火墙服务

systemctl disable firewalld.service   #禁止防火墙开启启动

systemctl restart iptables.service   #重启防火墙使配置生效

systemctl enable iptables.service    #设置防火墙开机启动

以上是关于CentOS7防火墙关闭开启的主要内容,如果未能解决你的问题,请参考以下文章

centos7开启关闭防火墙

Centos7防火墙开启和关闭

centos7 为啥开启防火墙之后就断开连接

Centos7开启iptables防火墙关闭firewall防火墙

centos7 查看打开关闭防火墙

centos7 关闭默认firewalld,开启iptables