Why I can't access remote Jupyter Notebook server?

前端 未结 15 1088
清酒与你
清酒与你 2020-12-02 04:53

I have started a Jupyter Notebook server on my centos6.5 server.And jupyter is running like

[I 17:40:59.649 NotebookApp] Serving notebooks from local directo         


        
15条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 05:19

    From your command line, we can see your jupyter server is running normally.The reason you can't access your remote jupyter server is that your remote centos6.5 server's firewall rules block the incoming request from your local browser,i.e. block your tcp:8045 port.
    sudo ufw allow 80 # enable http server
    sudo ufw allow 443 # enable https server
    sudo ufw allow 8045 # enable your tcp:8045 port
    then try to access your jupyter again.


    Maybe you also need to uncomment and edit that place in your jupyter_notebook_config.py file:

    c.NotebookApp.allow_remote_access = True
    

    and even shut down your VPN if you have one.

提交回复
热议问题