当前位置:懂科普 >

IT科技

> centos关闭防火墙命令

centos关闭防火墙命令

centos关闭防火墙命令的步骤如下:

centos关闭防火墙命令

1、首先打开xshell软件连接到centos主机,使用命令“systemctl status firewalld.service”查看防火墙状态。

2、按下回车键执行后,可以看到标注的“active(running)”,说明防火墙是开启状态。

3、命令行里敲入命令“systemctl stop firewalld.service”,可以关闭运行的防火墙。

4、关闭后再使用命令systemctl status firewalld.service查看防火墙状态,如果出现disavtive(dead)的字样,说明防火墙已经关闭。

5、若设置永久关闭防火墙,则输入命令“systemctl disable firewalld.service”,即可永久禁止防火墙服务,下次重启也不会开启。

  • 文章版权属于文章作者所有,转载请注明 https://dongkepu.com/itkeji/878395.html