vi /etc/sysconfig/iptables

#开放9000端口

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 9000 -j ACCEPT 

 

Linux防火墙开放特定端口

#最后重启防火墙使配置生效

/etc/init.d/iptables restart 

相关文章:

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