1、服務器可ping通
2、服務器抓本地的http請求包,可以抓到
3、本地抓服務器返回的http響應包,抓不到
經過查找,是由于開啟了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啟動正常,但瀏覽器無法訪問的解決方法就是小編分享給大家的全部內容了,希望能給大家一個參考,也希望大家多多支持武林網。
新聞熱點
疑難解答