- 时间:2020-07-12 08:52 编辑: 来源: 阅读:
- 扫一扫,手机访问
摘要:Linux下Tomcat启动正常,但浏览器无法访问的解决方法
[b]1、服务器可ping通[/b]
[b]2、服务器抓本地的http请求包,可以抓到[/b]
[b]3、本地抓服务器返回的http响应包,抓不到[/b]
经过查找,是由于开启了Linux防火墙
查看防火墙配置(需要root权限)
[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权限)
[root@localhost ~]# service iptables stop
以上这篇Linux下Tomcat启动正常,但浏览器无法访问的解决方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持编程素材网。