https://www.pythonf.cn/read/44068
vim .jupyter/jupyter_notebook_config.py
写入下面配置
c.NotebookApp.notebook_dir = u’/root/workspace_jupyter’ # jupyter存放文件的路径 c.NotebookApp.ip = ‘0.0.0.0’ # 允许所有ip访问 c.NotebookApp.password = u’sha1:…’ # 上面的 sha1 签名 c.NotebookApp.open_browser = False # 服务器不打开浏览器 c.NotebookApp.port = 8888 # 端口号 c.NotebookApp.allow_root = True # 允许root用户访问