版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_33450681/article/details/78015984
经过查找,是由于开启了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启动正常,但浏览器无法访问的解决方法希望能帮助到大家!