Linux打开和关闭防火墙指令

1、启动

设置开机启用防火墙:systemctl enable firewalld.service

启动防火墙:systemctl start firewalld

2、关闭

设置开机禁用防火墙:systemctl disable firewalld.service
关闭防火墙(有时间限制):systemctl stop firewalld

3、检查

检查防火墙状态:systemctl status firewalld

你可能感兴趣的:(java,linux,后端)