我正在尝试使用在我的ec2实例上运行的jupyter笔记本 我从这里开始执行以下步骤: 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
我无法连接。
答案 0 :(得分:0)
只需进入安全组,然后找到您的ec2正在使用的VPC以及入站规则中“我的IP”的所有“所有”流量。