CentOS7关闭防火墙的操作方法
时间:2022-10-26 17:54
你们知道CentOS7如何关闭防火墙吗?怎么样开启这项功能呢?对此感兴趣的用户可以随小编去下文看看CentOS7关闭防火墙的操作方法。
CentOS7关闭防火墙的操作方法
使用命令:systemctl status firewalld.service
查看防火墙状态

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

使用命令:systemctl stop firewalld.service
关闭运行的防火墙

关闭后,使用命令systemctl status firewalld.service
查看防火墙状态
能看到,disavtive(dead)的字样,说明防火墙已关闭


前面的操作方法,一旦重启操作系统,防火墙就自动开启了,该怎么设置才能永久关闭防火墙呢?
输入命令:systemctl disable firewalld.service,禁止防火墙服务器

命令成功执行,返回消息

还不了解CentOS7关闭防火墙的操作流程的朋友们,不要错过小编带来的这篇文章哦。