我一直按照以下步骤在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的工作,只是想指出以防万一。