简体   繁体   English

AWS上的Jupyter Notebook挂起

[英]Jupyter Notebook on AWS hangs

I followed the instructions on how to setup jupyter on a AWS instance, but am unable to access it from my personal computer at the address https://127.0.0.1:8157 after setting up the ssh tunnel and starting the notebook. 我按照有关如何在AWS实例上设置jupyter的说明进行操作 ,但是在设置ssh隧道并启动笔记本后,无法从我的个人计算机访问https://127.0.0.1:8157 It just hangs. 它只是挂了。 Anyone have ideas on how to fix. 任何人都有如何解决的想法。

I used the following security settings 我使用了以下安全设置

在此处输入图片说明

I opened a tunnel as so 我这样开了隧道

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

and ran the instance as 并以

$ jupyter notebook $ jupyter笔记本
[I 03:59:30.778 NotebookApp] Serving notebooks from local directory: /home/ubuntu/qlearning [I 03:59:30.778 NotebookApp] 0 active kernels [I 03:59:30.779 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=4b35857968acb4a75dc4b7fdd246c20b967dcfaaa13799c2 [I 03:59:30.779 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [I 03:59:30.778 NotebookApp]从本地目录服务笔记本:/ home / ubuntu / qlearning [I 03:59:30.778 NotebookApp] 0个活动内核[I 03:59:30.779 NotebookApp] Jupyter Notebook在以下位置运行: http :// localhost:8888 /?token = 4b35857968acb4a75dc4b7fdd246c20b967dcfaaa13799c2 [I 03:59:30.779 NotebookApp]使用Control-C停止该服务器并关闭所有内核(两次跳过确认)。 [W 03:59:30.779 NotebookApp] No web browser found: could not locate runnable browser. [W 03:59:30.779 NotebookApp]未找到Web浏览器:无法找到可运行的浏览器。 [C 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 

But both https://127.0.0.1:8157/ and https://127.0.0.1:8157/?token=4b35857968acb4a75dc4b7fdd246c20b967dcfaaa13799c2 hang. 但是https://127.0.0.1:8157/https://127.0.0.1:8157/?token=4b35857968acb4a75dc4b7fdd246c20b967dcfaaa13799c2都挂起。

You should use http ://127.0.0.1:8157 not https:// 您应该使用http://127.0.0.1:8157而不是https://

*There's no need to open port 8888 in the security group, as you are tunneling the connection through port 22. *由于您正在通过端口22建立隧道连接,因此无需在安全组中打开端口8888。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM