在一些特殊情况下,不需要防火墙,所以要关闭防火墙。
下面我们通过命令行永久关闭防火墙。
连接上你的Centos7的命令行界面。

输入下面的命令,然后回车。
systemctl status firewalld.service
出现图中所示,表明目前防火墙处于打开状态。

接着输入下面的命令,来关闭防火墙,
systemctl stop firewalld.service
然后再使用命令,在下方出现disavtive(dead),这样就说明防火墙已经关闭。
systemctl status firewalld.service

再在命令行中输入下面的命令,即可永久关闭防火墙。
systemctl disable firewalld.service

除非注明,否则均为 曼诺 原创文章,转载请注明出处:https://www.wamano.com/2025/4393.html