Centos操作系统关闭防火墙

2025-04-08 20:17:54

大家好,今天为大家带来CentOS6和7版本开启,关闭防火墙的操作教程,希望对大家有用:

工具/原料

计算机

CentOS操作系统

Centos 6 关闭防火墙

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操作系统关闭防火墙

Centos 7关闭防火墙

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。
猜你喜欢