Centos6:
查看防火墙状态:service iptables status
暂时关闭防火墙:service iptables stop
永久关闭防火墙:chkconfig iptables off
启动防火墙:service iptables start
重启防火墙:service iptables restart
永久关闭后启用:chkconfig iptables on
Centos7:
查看防火墙状态: systemctl status firewalld
暂时关闭防火墙:systemctl stop firewalld
永久关闭防火墙:systemctl disable firewalld
启动防火墙: systemctl start firewalld
重启防火墙:systemctl restart firewalld
永久关闭后启用 : systemctl enable firewalld
本文发布于:2024-02-04 17:11:33,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170712434357679.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |