簡體   English   中英

無法在AWS上連接Jupyter Notebook

[英]Unable to connect jupyter notebook on AWS

我無法在AWS上連接jupyter筆記本。 我在SO上嘗試了幾種解決方案,包括通過任何IP使用端口8888設置安全組規則,設置配置文件,例如:

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

另外,我嘗試使用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=****** ,並且我無法在網絡瀏覽器中打開此URL,說ip-172-31-44-200's server IP address could not be found.

有什么解決辦法嗎? 提前致謝!

正如評論中提到的@AlexK,我應該使用DNS或公共IP連接jupyter筆記本。 對於有相同問題的人,可以在AWS實例選項卡下找到公共DNS(IPv4),然后使用jupyter notebook --ip=ec2-**.******.compute.amazonaws.com連接jupyter notebook jupyter notebook --ip=ec2-**.******.compute.amazonaws.com 現在jupyter notebook應該可以在AWS上完美運行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM