Redhat 7内核 Linux系统  开通防火墙端口 使用systemctl

1.查看防火墙状态,root用户登录,执行命令systemctl status firewalld

 

2.开启防火墙:systemctl start firewalld

 

3.关闭防火墙:systemctl stop firewalld


4.禁用防火墙:systemctl disable firewalld

 

5.放行端口:firewall-cmd --add-port=8080/tcp --permanent,此处需要注意cmd和--之间有空格

 

6.刷新防火墙:firewall-cmd --reload ,使配置生效

相关文章:

  • 2022-02-04
  • 2022-02-09
  • 2021-11-30
  • 2022-12-23
  • 2021-12-09
  • 2022-01-07
猜你喜欢
  • 2021-09-07
  • 2022-02-14
  • 2021-12-27
  • 2022-12-23
  • 2021-11-23
  • 2021-08-14
  • 2021-04-12
相关资源
相似解决方案