centos7防火墙操作
2023-07-25 本文已影响0人
三个程序员之一
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