1、打开防火墙
systemctl start firewalld
2、关闭防火墙
systemctl stop firewalld
systemctl stop firewalld.service
3、查看防火墙状态
systemctl status firewalld
systemctl status firewalld.service
4、启用防火墙
systemctl enable firewalld
5、禁用防火墙(禁止防火墙开机自启动)
systemctl disable firewalld
systemctl disable firewalld.service
网友评论