首页 > 解决方案 > 连接到在 EC2 实例上运行的 jupyter 笔记本时出现问题

问题描述

我正在尝试使用在我的 ec2 实例上运行的 jupyter notebook 我按照这里的步骤操作: 在 ec2 上运行笔记本的步骤

我通过配置文件在所有 IPS 上启用了笔记本。这是运行笔记本服务器的图片

笔记本

我无法弄清楚为什么我无法连接这里是我的配置文件的内容:

c = get_config()

# Notebook config this is where you saved your pem cert
c.NotebookApp.certfile = u'/home/ubuntu/certs/mycert.pem' 
# Run on all IP addresses of your instance
c.NotebookApp.ip = '*'
# Don't open browser by default
c.NotebookApp.open_browser = False  
# Fix port to 8888
c.NotebookApp.port = 8888

当我尝试像这样从本地浏览器访问它时:

https://ec2-xx-xx-xxx-xxx.us-west-2.compute.amazonaws.com:8888

我无法连接。

标签: amazon-web-servicesamazon-ec2jupyter-notebook

解决方案


只需转到安全组并找到您的 ec2 正在使用的 VPC 以及入站规则中 MY IP 的所有所有流量。


推荐阅读