systemctl status firewalld
:查看防火墙状态
systemctl stop firewalld
:关闭本次防火墙
systemctl start firewalld
:启动防火墙
systemctl disable firewalld
:禁用防火墙
需要注意的是,如果当前防火墙是处理开启状态,使用disable禁用防火墙之后,并不会直接处于关闭状态,如果想要直接让他处于关闭状态,需要运行一下systemctl stop firewalld
:关闭本次防火墙
systemctl status firewalld
:查看防火墙状态
systemctl stop firewalld
:关闭本次防火墙
systemctl start firewalld
:启动防火墙
systemctl disable firewalld
:禁用防火墙
需要注意的是,如果当前防火墙是处理开启状态,使用disable禁用防火墙之后,并不会直接处于关闭状态,如果想要直接让他处于关闭状态,需要运行一下systemctl stop firewalld
:关闭本次防火墙