我已经在远程Ubuntu服务器上安装了apache tomcat。 我已经正确安装并配置了它(ps -ef | grep tomcat
列出了tomcat进程)。 我已经在webapps目录中部署了我的应用程序的war文件。 我有服务器的公共IP地址,也知道tomcat的侦听端口。Tomcat安装在远程服务器上。如何检查本地浏览器
当我进入public_ip_address_of_server:在我的本地Windows机器tomcat_listening_port/my_application_name浏览器的地址栏上, 我得到“无法连接到public_ip_address_of_server:tomcat_listening_port”错误
可能是什么原因?您的帮助将受到高度赞赏。
注:我测试了tomcat在服务器上正常运行。
在此先感谢
检查/ etc/hosts文件,并确保你有公网IP列在那里 – Satya
@Satya我已经提到它:public_ip random_name在hosts文件中,但问题仍然存在 –
LoveForDroid
你检查Apache日志,他们可能会给你一个更好的想法 – Satya