admin 管理员组文章数量: 1087652
Linux 关闭防火墙方法
不同版本的关闭方法略有不同
1 CentOS 6.* 关闭防火墙方法
1)查询防火墙状态:service iptables status
2)关闭防火墙:service iptables stop
3)启动防火墙:service iptables start
4)重启防火墙:service iptables restart
5)永久关闭防火墙:chkconfig iptables off
6)永久关闭后启用防火墙:chkconfig iptables on
2 CentOS 7.* 关闭防火墙方法
1)查看防火墙状态:systemctl status firewalld.service
2)关闭防火墙:systemctl stop firewalld.service
3)开启防火墙:systemctl start firewalld
4)重启防火墙:systemctl reload firewalld
5)永久关闭防火墙:systemctl disable firewalld.service
6)永久关闭后启用防火墙:systemctl enable firewalld.service
本文标签: Linux 关闭防火墙方法
版权声明:本文标题:Linux 关闭防火墙方法 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.roclinux.cn/b/1686562024a10583.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论