首页 > 解决方案 > 无法访问 tomcat 主页但 tomcat 正在运行

问题描述

我已经在具有 linux os vm 的 aws ec2 实例上安装了 tomcat。当我将主机名放在我的 Windows 系统的浏览器中时,我无法访问 tomcat 的主页。我尝试了这些命令来检查 tomcat 是否工作。

ps x | grep /opt/tomcat | grep -v grep | cut -d ' ' -f 1

ps -ef | grep tomcat | grep -v "grep tomcat" | wc -l

ps -x |grep tomcat

ps -ef|grep java.
netstat -tulpn
lsof -i 

并且 8080 端口正在侦听并且 tomcat 正在运行。hostname:8080但是当我把它放在我的Windows浏览器中时,我无法访问tomcat主页。可能是什么问题呢?

标签: linuxwindowstomcatamazon-ec2

解决方案


推荐阅读