Linux关闭防火墙命令

611#56253761

有项目使用到了Centos系统服务器,发布后局域网不能访问的可能原因之一就是防火墙还开着

抄袭地址

查看当前防火墙状态

shell 复制代码
systemctl status firewalld

永久性生效

开启

shell 复制代码
systemctl enable firewalld

关闭

shell 复制代码
systemctl disable firewalld

即时生效,重启后失效

开启

shell 复制代码
systemctl start firewalld

关闭

shell 复制代码
systemctl stop firewalld

参与本文讨论

请先登录 GitHub 后留言

0/500

本文留言

0

这篇文章还没有留言,来写第一条吧。

1 / 1