阿里云部署自建jupyter notebook
- 安装jupyter notebook
pip3 install ipython jupyter notebook
- 生成配置文件
jupyter notebook --generate-config
- 配置密码
jupyter notebook password
生成文件jupyter_notebook_config.josn,内有密码sha值
4. 修改配置文件
c.NotebookApp.ip = '内网IP' #阿里云内网IP
c.NotebookApp.password = u'密码sha值'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.allow_root = True
- 添加规则
安全——防火墙——添加TCP 8888端口 - 启动
jupyter notebook
- 最后
输入阿里云外网IP:8888即进入