centOS上部署jupyter

1、下载安装anaconda

wget https://repo.anaconda.com/archive/Anaconda3-5.3.0-Linux-x86_64.sh

bash Anaconda3-5.3.0-Linux-x86_64.sh -u

一路默认安装

生效.bashrc文件

source ~/.bashrc

添加anaconda的环境变量

vim /etc/pfofile

export PATH=~/anaconda3/bin:$PATH

保存退出

source /etc/profile

输出python查看anaconda是否安装成功

centOS上部署jupyter

2、下载和配置jupyter

pip install jupyter

允许远程连接,在root路径下:jupyter notebook –generate-config –allow-root

更改配置:

vi /root/.jupyter/jupyter_notebook_config.py

在这里只需要制定一个端口,这里使用的默认8888:

c.NotebookApp.port = 8888

开启服务:

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

终端会显示给出的默认密码token

现在打开浏览器,输入ip:8888,使用token登录或者更改密码,出现如下界面测配置成功!!!

centOS上部署jupyter

如果遇到不能打开的问题,尝试关闭防火墙

systemctl stop firewalld.service