systemctl start firewalld 启动防火墙
systemctl stop firewalld 关闭防火墙
systemctl status firewalld 查看状态
systemctl disable firewalld 开机禁用
systemctl enable firewalld 开机启用
先查看防火墙状态
systemctl status firewalld 查看状态
然后我们要关闭防火墙(重启失效),输入
systemctl stop firewalld
然后我们再查看状态,现在就为关闭状态。
还可以设置
开机启用:
systemctl enable firewalld
开机禁用:
systemctl disable firewalld