查看防火墙状态
systemctl status firewalld
指定端口开放的端口80
firewall-cmd --permanent --add-port=80/tcp
重启防火墙
firewall-cmd --reload
关闭防火墙:
systemctl stop firewalld.service
开启防火墙:
systemctl start firewalld.service
关闭开机启动:
systemctl disable firewalld.service
开启开机启动:
systemctl enable firewalld.service
linux防火墙命令
于 2023-05-24 15:10:37 首次发布