tomcat - 谷歌云平台 : External IP Address isn't Accessible from Outside

标签 tomcat google-cloud-platform jupyter-notebook google-compute-engine vpc

我最近开始使用“Google Cloud Platform”。我基本上想将它用于我的数据科学项目。我已成功设置项目、VM 实例、防火墙规则等。

enter image description here

我已经安装了在端口 8888 上运行的 Jupyter Notebook,并且我已经安装了 Apache tomcat 服务器。现在,我想通过我的 VM 的静态外部 IP 地址访问这些,但是当我提到静态外部 IP 地址时,这些是不可访问的。

我已经验证了外部路径,启用了项目 HTTP(s) 流量,添加了 Apache tomcat 和 Jupyter Notebook 的防火墙规则,并且可以 Ping 到该外部 IP 地址。在下图中,可以看到jupyter notebook和tomcat的所有防火墙规则:

enter image description here

我尝试通过以下方式访问:

  • https://{static-external-ip}/
  • https://{static-external-ip}:8080/
  • https://{static-external-ip}:888/

在这方面的任何帮助将是一个很大的帮助。快乐学习!

更新:2018 年 11 月 10 日 我可以使用以下 URL 访问服务器:

首先,这些无法公开(外部)访问,其次,访问具有静态外部 IP 的服务器时仍然存在问题。

最佳答案

您似乎已经完成了向外部公开服务的所有步骤,除了我猜测一件事 - Jupyter 是否正在监听环回接口(interface)?每Jupyter's documentation -

默认情况下,笔记本服务器在 127.0.0.1:8888 本地运行,并且只能从本地主机访问。您可以使用 http://127.0.0.1:8888 从浏览器访问笔记本服务器。

文档提供了有关如何制作它的信息accessible to the outside world .简而言之,访问服务必须绑定(bind)到所有接口(interface) (ips)。

关于tomcat - 谷歌云平台 : External IP Address isn't Accessible from Outside,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53233495/

相关文章:

linux - 无法连接到tomcat服务器

java - 在jsp中添加一个类

java - 无法创建文件 [META-INF/war-tracker] Tomcat 9 linux

python - 使用 GCP 的 Cloud Vision 进行车牌识别

python - 从 jupyter 笔记本运行 python 程序,同时传递文件名作为参数

tomcat - Netbeans 8 - Apache Tomcat 8 - 日志 View 为空

google-cloud-platform - 如何从谷歌云计算实例上的虚拟机外部停用 UFW

google-cloud-platform - Google Cloud 的 Always Free 限制是否基于每个项目或每个帐户?

python - 使用函数从 python 环境中删除所有变量/对象

python - JupyterHub openssl 自签名证书 "Error: error:0906D06C:PEM routines:PEM_read_bio:no start line"