pip install jupyterjupyter notebook --generate-configvim ~/.jupyter/jupyter_notebook_config.py#需要在末端添加一下配置信息:
c.NotebookApp.ip = '*' #所有绑定服务器的IP都能访问,若想只在特定ip访问,输入ip地址即可
c.NotebookApp.port = 8088 #默认是8888,图方便直接设80端口
c.NotebookApp.open_browser = False #我们并不想在服务器上直接打开Jupyter Notebook,所以设置成False
c.NotebookApp.notebook_dir = '/workdir' #这里是设置Jupyter的根目录,若不设置将默认root的根目录
c.NotebookApp.allow_root = True # 为了安全,Jupyter默认不允许以root权限启动jupyter
jupyter notebook passwordjupyter notebook |nohup jupyter notebook --allow-root > jupyter.log 2>&1 &nohup jupyter notebook --allow-root --config="user.config" > jupyter.log