Jupyter实验室仅在私有IP上开放,而不在公共IP上开放

时间:2019-01-04 06:30:30

标签: python-3.x amazon-ec2 jupyter ubuntu-18.04 jupyter-lab

OS:aws ec2上的ubuntu 18.04.1 LTS

我正在aws ec2服务器上设置jupyter实验室,并希望从其他PC连接服务器。

但是我无法访问jupyter

也许这就是为什么它连接到专用ip

首先,我安装了jupyter和config

 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        For i As Integer = 1 To 5
            Form2.Show()
        Next
 End Sub

更改了

上的配置
  

“〜/ .jupyter / jupyter_notebook_config.py”

$ pip3 install jupyter

$ pip3 install jupyterlab

$ jupyter notebook --generate-config

然后,我尝试运行jupyter lab

  

$ jupyter实验室

最后,

c.NotebookApp.allow_origin = '*'

c.NotebookApp.ip = '0.0.0.0'

c.NotebookApp.open_browser = False

c.NotebookApp.password = <my_password>

c.NotebookApp.port = 8888

已打印

我希望[I 06:25:39.565 LabApp] JupyterLab extension loaded from /usr/local/lib/python3.6/dist-packages/jupyterlab [I 06:25:39.565 LabApp] JupyterLab application directory is /usr/local/share/jupyter/lab [W 06:25:39.567 LabApp] JupyterLab server extension not enabled, manually loading... [I 06:25:39.569 LabApp] JupyterLab extension loaded from /usr/local/lib/python3.6/dist-packages/jupyterlab [I 06:25:39.569 LabApp] JupyterLab application directory is /usr/local/share/jupyter/lab [I 06:25:39.570 LabApp] Serving notebooks from local directory: /home/ubuntu/.certs [I 06:25:39.570 LabApp] The Jupyter Notebook is running at: [I 06:25:39.570 LabApp] http://(ip-XXX-XX-XX-XXX or 127.0.0.1):8888/ [I 06:25:39.570 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 在cmd上显示

如何在公共IP上运行jupyter?

0 个答案:

没有答案