查询防火墙状态

systemctl status firewalld.service
CentOS8 更改防火墙状态
如果 Active 下为绿色的 active(running) ,表明防火墙是开启的状态。

关闭防火墙

systemctl stop firewalld.service
CentOS8 更改防火墙状态
如果 Active 下为 inactive(dead) ,表明防火墙是关闭的状态。

开启防火墙

systemctl start firewalld.service
CentOS8 更改防火墙状态
可以看到,防火墙打开。

相关文章:

  • 2021-11-23
  • 2022-12-23
  • 2021-12-11
  • 2021-04-09
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2021-10-25
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
相关资源
相似解决方案