您的位置:首页 > 运维架构 > Tomcat

Linux下Tomcat启动正常但无法访问

2016-10-18 17:55 453 查看
1,服务器可ping通

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

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

 

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

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

[plain] view
plain copy

[root@localhost ~]# service iptables status  

Redirecting to /bin/systemctl status  iptables.service  

iptables.service - IPv4 firewall with iptables  

   Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled)  

   Active: inactive (dead)  

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

[plain] view
plain copy

[root@localhost ~]# service iptables stop  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: