Linux 实用大全
1、Linux修改iptables,开放8080端口
默认安装tomcat后,客户端不能通过8080端口访问。
由于Linux防火墙默认是关闭8080端口。因此,若要能够访问8080端口就必须让防火墙开放8080端口。
步骤:
1、修改/etc/sysconfig/iptables文件,增加如下一行:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
2、重启防火墙
service iptables restart
相关推荐
  tchonggang    2015-08-12  
   jmdvirus    2015-08-12  
   Will0    2010-10-29  
   secondid    2010-08-23  
   pointfish    2009-12-19  
   helencoder    2011-05-03  
   zgxzowen    2007-10-08  
   onlykg    2012-08-15  
   secondid    2019-06-06  
   shukezheng    2018-09-09  
   Nicolase    2018-07-13  
   oraclestudyroad    2011-11-12  
   hepeng    2010-11-10  
   hellowillness    2008-06-25  
   结果因为如果诞生    2009-07-12  
 