amazon-web-services - 连接到在 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
我无法连接。
解决方案
只需转到安全组并找到您的 ec2 正在使用的 VPC 以及入站规则中 MY IP 的所有所有流量。
推荐阅读
- python - 腐烂的橙色问题 - 无法获得预期值
- php - 删除数组空PHP的结尾
- javascript - 图标在图像上未正确显示
- c# - 使用 IDataProtectionProvider 时如何为相同的输入生成相同的结果
- php - 将字符串数据传递给另一个方法并将其保存到 JSON 文件中
- flutter - 问:是否有任何用于颤振的小部件库工具?像 JS 有一点 UI 组件(https://bit.dev/)
- mysql - 如果它是新数据,如何插入或如果它已经存在则更新
- php - 如何从 php 系统(wget=...)输出到单个刷新行或进度条?
- html - CSS text-decoration underline, same width as text and underline
- javascript - JS 和画布的 HSL 颜色逻辑