Centos操作系统关闭防火墙

2025-11-21 17:46:31

1、查看防火前状态:/etc/init.d/iptables status

Centos操作系统关闭防火墙

2、开启防火墙:/etc/init.d/iptables start

Centos操作系统关闭防火墙

3、关闭防火墙:/etc/init.d/iptables stop

Centos操作系统关闭防火墙

4、设置防火墙开机不起动: chkconfig iptables off

Centos操作系统关闭防火墙

1、开启防火墙:systemctl start firewalld

Centos操作系统关闭防火墙

2、看防火前状态:firewall-cmd --state

Centos操作系统关闭防火墙

3、关闭防火墙:systemctl stop firewalld

Centos操作系统关闭防火墙

4、关闭防火墙开机启动:systemctl disable firewalld

Centos操作系统关闭防火墙

5、查看防火墙开机启动状态:systemctl list-unit-files|grep firewalld

Centos操作系统关闭防火墙

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢