Linux关闭防火墙命令(永久关闭、暂时关闭、重启防火墙)

吾爱主题 阅读:225 2024-04-05 15:10:21 评论:0

1:查看防火墙状态

systemctl status firewalld
service  iptables status

2:暂时关闭防火墙

systemctl stop firewalld
service  iptables stop

3:永久关闭防火墙

systemctl disable firewalld
chkconfig iptables off

已永久关闭状态:

4:重启防火墙

systemctl enable firewalld
service iptables restart

5:永久关闭后重启

//暂时还没有试过

chkconfig iptables on

到此这篇关于Linux关闭防火墙命令(永久关闭、暂时关闭、重启防火墙)的文章就介绍到这了,更多相关内容请搜索服务器之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持服务器之家!

原文地址:https://blog.csdn.net/Myx74270512/article/details/127938415

可以去百度分享获取分享代码输入这里。
声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

【腾讯云】云服务器产品特惠热卖中
搜索
标签列表
    关注我们

    了解等多精彩内容