Linux下Tomcat启动正常,但浏览器无法访问

1,服务器可ping通

2,服务器抓本地的http请求包,可以抓到

3,本地抓服务器返回的http响应包,抓不到

 

经过查找,是由于开启了Linux防火墙

查看防火墙配置(需要root权限)

  1. [root@localhost ~]# service iptables status  
  2. Redirecting to /bin/systemctl status  iptables.service  
  3. iptables.service - IPv4 firewall with iptables  
  4.    Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)  
  5.    Active: inactive (dead)  

关闭防火墙(需要root权限)

  1. [root@localhost ~]# service iptables stop  

posted on 2015-10-15 17:18  快乐编程呀  阅读(208)  评论(0)    收藏  举报

导航