【发布时间】:2020-08-11 10:43:34
【问题描述】:
大家好
我已经使用谷歌云设置了一个虚拟机来托管 Jupyter Hub 服务器。
我已允许 HTTP 和 HTTPS 流量。我已经设置了防火墙以允许 IP 范围为 0.0.0.0/0 的端口 8888。我已将外部 IP 地址设为静态(也尝试过临时)。
运行命令“jupyter notebook --ip=0.0.0.0 --port=8888 --no-browser &”时,Jupyter notebook 成功启动,并显示以下内容:
[I 09:51:49.924 NotebookApp] Jupyter Notebook 6.1.1 is running at:
[I 09:51:49.924 NotebookApp] http://virtualpcname:8888/?token=xxxxx
[I 09:51:49.924 NotebookApp] or http://localip:8888/?token=xxxxx
[I 09:51:49.924 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmatio
n).
[C 09:51:49.927 NotebookApp]
To access the notebook, open this file in a browser:
file:///virtualmachinepath/.local/share/jupyter/runtime/nbserver-28710-open.html
Or copy and paste one of these URLs:
http://virtualpcname:8888/?token=xxxx
or http://localip:8888/?token=xxxx
然后我对浏览器使用以下格式: http://STATIC_EXTERNAL_IP:8888/?token=xxxx
最后我无法连接到服务器并得到经典的“无法访问此站点。连接超时”
我还为端口 8888 直接添加到 Windows 防火墙的入站和出站连接的例外,关闭了防火墙,仍然没有运气
似乎访问受到限制或阻止。我将如何解决这个问题?我也试过两台不同的电脑
【问题讨论】:
标签: google-cloud-platform jupyter-notebook jupyter