CentOS7.x关闭防火墙

使用命令:systemctl status firewalld.service

查看防火墙状态

执行后可以看到绿色字样标注的“active(running)”,说明防火墙是开启状态

 

使用命令:systemctl stop firewalld.service    

关闭运行的防火墙

 

 

关闭后,使用命令systemctl status firewalld.service

查看防火墙状态

可以看到,disavtive(dead)的字样,说明防火墙已经关闭

  1. 输入命令:systemctl disable firewalld.service,禁止防火墙服务器

posted @ 2019-11-13 11:05  张瑞丰  阅读(316)  评论(0编辑  收藏  举报