无法从Google Compute Engine VM(Windows Server 2012)在8080端口上访问tomcat服务器 [英] Unable to access tomcat server on 8080 port from Google Compute Engine VM (Windows Server 2012)

查看:82
本文介绍了无法从Google Compute Engine VM(Windows Server 2012)在8080端口上访问tomcat服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Google Compute Engine下创建了虚拟机,并选择Windows Server 2012 R2作为服务器的操作系统.我已经安装了Tomcat 8,并且它在8080 HTTP端口上运行.我可以使用内部IP和本地主机在浏览器上访问本地tomcat.但是我无法使用本地计算机上的外部IP访问tomcat.如果可以的话请帮帮我.我的tomcat的tomcat服务器配置文件如下.

I have created Virtual Machine Under Google Compute Engine and selected Windows Server 2012 R2 as OS for the server. I have installed Tomcat 8 and and it is running on 8080 HTTP port. I can access locally tomcat on browser using internal IP and localhost. But I can not able to access tomcat using external IP from my local computer. Please help me if possible. My tomcat server configuration file of tomcat is below.

推荐答案

有两个常见问题:

  1. 您需要在 GCE防火墙中打开端口8080以便可以从GCE外部对其进行访问.

  1. You need to open port 8080 on GCE's firewall in order for it to be accessible from outside GCE.

Tomcat可能仅在本地主机上侦听.您可能需要设置 HTTP连接器地址属性设置为0.0.0.0,以便Tomcat侦听所有地址.

It is possible that Tomcat is only listening on the localhost. You might need to set the HTTP Connector address attribute to 0.0.0.0 so that Tomcat listens on all addresses.

这篇关于无法从Google Compute Engine VM(Windows Server 2012)在8080端口上访问tomcat服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆