tomcat7 - 无法远程连接到服务器(端口 8080:连接被拒绝)

tomcat7 - unable to connect remotely to server (port 8080: Connection refused)

我在 Ubuntu 14.04 服务器上使用 PerfSONAR a network measurement tool, which has a UI that depends on tomcat7. I installed the perfsonar-ui,为了测试我的安装,我将浏览器(在 windows 7 机器上)指向地址 http://my_server_address:8080/perfsonar-ui/.连接失败。

到目前为止我尝试了什么:

还是不行! :(

有人可以帮我解决这个问题吗?谢谢。

我正在关闭它。它与 tomcat 无关。这是一个 iptables 问题,我必须允许传入连接到目标端口 8080。它起作用了!

我找到了一个替代解决方案,只需在 tomcat conf 中的 server.xml 中将端口 8080 替换为端口 80。然后停止并再次启动 tomcat 服务器。它在 Ubuntu 16.4 服务器上测试。

原文: 连接器 port="8080" 协议="HTTP/1.1"

修改: 连接器 port="80" 协议="HTTP/1.1"

当我从我的网站使用 CURL 访问远程 tomcat 服务器时,它对我有用。

API URL 应该是“http://xxx.xxx.xxx.xxx/api/24" in place of "http://xxx.xxx.xxx.xxx:8080/api/24