kaffeetrinken

是因为Linux的防火墙没有开放8080端口

解决办法:

/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT #开启8080端口 
/sbin/iptables -I INPUT -p tcp --dport 22 -j ACCEPT #开启22端口 
/etc/rc.d/init.d/iptables save #保存配置 
/etc/rc.d/init.d/iptables restart #重启服务 
查看已开放端口 
/etc/init.d/iptables status 
结果如下 
Table: filter 
Chain INPUT (policy ACCEPT) 
num target prot opt source destination 
2 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22 
3 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:8080
 
然后就可以访问了

 

 

分类:

技术点:

相关文章:

  • 2021-11-07
  • 2021-12-04
  • 2022-01-05
  • 2021-10-08
  • 2021-12-01
  • 2021-10-25
  • 2021-05-21
  • 2021-06-26
猜你喜欢
  • 2022-01-29
  • 2021-04-09
  • 2021-06-24
  • 2022-01-06
  • 2022-02-21
  • 2021-06-04
  • 2022-02-12
相关资源
相似解决方案