查询防火墙状态 systemctl status firewalld.service 如果 Active 下为绿色的 active(running) ,表明防火墙是开启的状态。 关闭防火墙 systemctl stop firewalld.service 如果 Active 下为 inactive(dead) ,表明防火墙是关闭的状态。 开启防火墙 systemctl start firewalld.service 可以看到,防火墙打开。 相关文章: 2021-11-23 2022-12-23 2021-12-11 2021-04-09 2022-12-23 2021-12-11 2022-12-23 2021-10-25