Why I can't access remote Jupyter Notebook server?

前端 未结 15 1003
清酒与你
清酒与你 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:17

    In RedHat 7, we need to allow the specific port before running the Jupiter command. Say the port is 8080.

    iptables -I INPUT 1 -p tcp --dport 8080 -j ACCEPT
    

    Then we can run it normally. For instance, using:

    jupyter notebook --ip 0.0.0.0 --no-browser --port=8080 --allow-root
    

    or whatever you like.

提交回复
热议问题