AWS上的Jupyter笔记本挂起

时间:2018-05-21 04:02:05

标签: amazon-web-services jupyter-notebook

我按照instructions关于如何在AWS实例上设置jupyter,但在设置ssh隧道并启动笔记本后,我无法从地址https://127.0.0.1:8157的个人计算机访问它。它只是挂起。任何人都有关于如何修复的想法。

我使用了以下安全设置

enter image description here

我打开了一条隧道

  

ssh -i keypair.pem -L 8157:127.0.0.1:8888 ubuntu @

并将实例作为

运行
  

$ jupyter notebook
  [I 03:59:30.778 NotebookApp]提供笔记本电脑   从本地目录:/ home / ubuntu / qlearning [I 03:59:30.778   NotebookApp] 0活动内核[I 03:59:30.779 NotebookApp]   Jupyter笔记本正在运行:   http://localhost:8888/?token=4b35857968acb4a75dc4b7fdd246c20b967dcfaaa13799c2   [I 03:59:30.779 NotebookApp]使用Control-C来停止此服务器和   关闭所有内核(两次跳过确认)。 [W 03:59:30.779   NotebookApp]找不到网络浏览器:无法找到可运行的浏览器。   [C 03:59:30.779 NotebookApp]

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
    http://localhost:8888/?token=4b35857968acb4a75dc4b7fdd246c20b967dcfaaa13799c2

https://127.0.0.1:8157/https://127.0.0.1:8157/?token=4b35857968acb4a75dc4b7fdd246c20b967dcfaaa13799c2都挂了。

1 个答案:

答案 0 :(得分:1)

您应该使用 http :// 122.0.0.1:8157而不是https://

*没有必要在安全组中打开端口8888,因为您通过端口22隧道连接。