1、服務(wù)器可ping通
2、服務(wù)器抓本地的http請求包,可以抓到
3、本地抓服務(wù)器返回的http響應(yīng)包,抓不到
經(jīng)過查找,是由于開啟了Linux防火墻
查看防火墻配置(需要root權(quán)限)
[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)關(guān)閉防火墻(需要root權(quán)限)
[root@localhost ~]# service iptables stop
以上這篇Linux下Tomcat啟動正常,但瀏覽器無法訪問的解決方法就是小編分享給大家的全部內(nèi)容了,希望能給大家一個參考,也希望大家多多支持武林網(wǎng)。
新聞熱點
疑難解答
圖片精選