簡體   English   中英

Jupyter 未從 Google Cloud 運行

[英]Jupyter not running from Google Cloud

美好的一天

我已經使用谷歌雲設置了一個虛擬機來托管 Jupyter Hub 服務器。

我已經允許 HTTP 和 HTTPS 流量。 我已經設置了防火牆以允許端口 8888 與 IP 范圍為 0.0.0.0/0。 我已經制作了外部 IP 地址 static (也嘗試過短暫的)。

運行命令“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 防火牆的入站和出站連接的例外,關閉防火牆仍然沒有運氣

似乎訪問受到限制或阻止。 我將如何解決這個問題? 我也試過兩台單獨的電腦

我使用了帶有 2 個 NVIDIA Tesla K80 GPU 的 n1-standard-8(8 個 vCPU,30 GB 內存)機器。 該圖像是來自 GCP 公共圖像列表的 ubuntu-1604-xenial-v20200807。 我在防火牆默認網絡中允許源過濾器(IP 范圍)0.0.0.0/0 的 5000 入口端口。 我按照公共文檔在 Google Cloud Platform 上安裝 Jupyter Notebook。 根據鏈接的文檔安裝后,我運行了以下命令:

jupyter-notebook --no-browser --port=5000

並瀏覽了外部 static ip 像這樣 http://External_IP:5000/ 我成功了。 根據我的觀察,我們需要仔細允許防火牆中的端口訪問運行服務的服務。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM