Big*_*igD 0 amazon-web-services jupyter-notebook
我在 AWS 上连接 jupyter 笔记本时遇到问题。我尝试了几种解决方案,包括从任何IP设置端口8888的安全组规则,设置配置文件如下:
\n\nc = get_config()\n\n# Notebook config this is where you saved your pem cert\nc.NotebookApp.certfile = u'/home/ubuntu/certs/mycert.pem' \n# Run on all IP addresses of your instance\nc.NotebookApp.ip = '*'\n# Don't open browser by default\nc.NotebookApp.open_browser = False \n# Fix port to 8888\nc.NotebookApp.port = 8888\nRun Code Online (Sandbox Code Playgroud)\n\n另外,我尝试使用jupyter notebook --ip=my_aws_ip --port=8888. 对于登录部分,我使用ssh -i <pem key> ubuntu@<ec2...> -L 8888:localhost:8888返回的所有上述解决方案https://ip-172-31-44-200:8888/?token=******,并且我无法在网络浏览器中打开此网址,说ip-172-31-44-200\xe2\x80\x99s server IP address could not be found.。
有什么解决办法吗?提前致谢!
\n正如@AlexK在评论中提到的,我应该使用DNS或公共IP来连接jupyter笔记本。对于遇到同样问题的人,在 AWS 实例选项卡下,您可以找到公共 DNS (IPv4),然后使用jupyter notebook --ip=ec2-**.******.compute.amazonaws.com. 现在 jupyter Notebook 应该可以在 AWS 上完美运行。
| 归档时间: |
|
| 查看次数: |
2244 次 |
| 最近记录: |