簡體   English   中英

在AWS EC2中安裝Jupyter

[英]Installing Jupyter in AWS EC2

我一直遵循以下步驟在AWS EC2中安裝Jupyter: https ://chrisalbon.com/aws/basics/run_project_jupyter_on_amazon_ec2/

我給了8888作為港口。 然后,我啟動了jupyter筆記本:

在此處輸入圖片說明

然后我繼續輸入我的實例網址: https ://ec2-XX-XX-XX-XXX.eu-west-3.compute.amazonaws.com: 8888/

我有一個公共IP,所以我也嘗試了https:// XX-XX-XX-XXX:8888 /

但是,它不會同時以兩種方式加載任何內容。 我確保在我的EC2實例上的安全組中授權了8888端口。 知道我該如何深入探討問題所在嗎?

[編輯1]:

我按照以下步驟操作:

c = get_config()

# Kernel config
c.IPKernelApp.pylab = 'inline'  # if you want plotting support always in your notebook

# Notebook config
c.NotebookApp.certfile = u'/home/ec2-user/Notebooks/certs/Mycert_file.pem' #location of your certificate file
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False  #so that the ipython notebook does not opens up a browser by default
c.NotebookApp.password = u'sha1:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'  #the encrypted password we generated above
# Set the port to 8888, the port we set up in the AWS EC2 set-up
c.NotebookApp.port = 8888

[編輯2]:

在執行這些步驟之前,我這樣做是:

sudo openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout Mycert_file.pem -out Mycert_file.pem

現在,要查找我的.pem文件,請執行以下操作: find /home -name *.pem

我找到了.pem文件的位置,該文​​件是/home/ec2-user/Notebooks/certs/Mycert_file.pem

[編輯3]:

我還要補充一點,我目前已經在8787端口上的此實例上運行RStudio會話。 我認為這不會影響我嘗試安裝Jupyter的工作,但只是想指出以防萬一。

因此,我發現了有關配置文件的問題。 在本教程中,它說要按esc鍵來記錄配置文件。 但這並沒有為我保存文件。 所以我只是用:wq! 它為我保存了它。

但是我仍然無法使它工作。 因此,按照建議,我使用了jupyter notebook --debug以下是日志: 在此處輸入圖片說明

暫無
暫無

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

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