安装jupyter
```
pip install jupyter
```
配置jupyter文件
- 查看用户目录下是否存在
.jupyter
目录(第一次安装正常是没有的)
生成配置文件
jupyter notebook --generate-config
- 自定义配置文件
vi ~/.jupyter/jupyter_notebook_config.py
# 添加以下
c = get_config()
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
# 这个配置源文件被注释,且为False,可以找到改为Ture,也可以直接手动添加
c.NotebookApp.allow_remote_access = True
更改安全规则
针对使用阿里云云服务器
做以下配置
Others
- CentOS root 用户启动
jupyter
需要参数--allow-root