【问题标题】:Issues while connecting to jupyter notebook running on EC2 instance连接到在 EC2 实例上运行的 jupyter 笔记本时出现问题
【发布时间】:2018-08-29 23:28:13
【问题描述】:

我正在尝试使用在我的 ec2 实例上运行的 jupyter notebook 我按照这里的步骤操作: steps for running notebook on 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

我无法连接。

【问题讨论】:

  • 已解决。通过允许我的 IP 的所有流量修改安全组后,我能够连接。

标签: amazon-web-services amazon-ec2 jupyter-notebook


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-04-29
    • 1970-01-01
    • 1970-01-01
    • 2021-02-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多