insomina

启动防火墙

[root@localhost ~]# systemctl start firewalld

查看防火墙状态

[root@localhost ~]# systemctl status firewalld

暂时关闭防火墙

[root@localhost ~]# systemctl stop firewalld

永久关闭防火墙

[root@localhost ~]# systemctl disable firewalld

查看防火墙开放的端口列表

[root@localhost ~]# firewall-cmd --list-ports

命令方式开放端口(8081端口为例)

[root@localhost ~]# firewall-cmd --zone=public --add-port=8081/tcp --permanent
[root@localhost ~]# firewall-cmd --reload
[root@localhost ~]# firewall-cmd --list-ports

 

分类:

技术点:

相关文章:

  • 2021-08-05
  • 2022-12-23
  • 2021-11-05
  • 2021-11-18
  • 2021-12-07
  • 2022-01-06
  • 2022-02-03
  • 2022-12-23
猜你喜欢
  • 2021-10-04
  • 2021-05-28
  • 2021-12-14
  • 2021-11-09
  • 2021-11-18
  • 2021-12-10
  • 2022-03-02
相关资源
相似解决方案