Linux(CENTOS7) Tomcat服务成功发布但局域网浏览器无法访问

  问题 : 我在linux搭建了一个tomcat服务器,tomcat开启后,发现在局域网浏览器上无法访问该tomcat,浏览器报无法访问服务器错误,我查看了tomcat的日志,路径..../tomcat/logs/catalina.out,发现tomcat在开启过程中没有报错。我又查看了一下工程日志,也没有错误。

  这种情况一般都是防火墙导致的问题,查看防火墙状态:

service iptables status   #查看防火墙状态

  错误解决方案(我这里是CENTOS7):

service iptables stop #停止 
chkconfig iptables off #禁用

  正确解决方案:

systemctl stop firewalld.service #停止 
systemctl disable firewalld.service #禁用
原文地址:https://www.cnblogs.com/kawhileonardfans/p/10966786.html