yum -y install zlib zlib-devel bzip2 bzip2-devel ncurses ncurses-devel readline readline-devel openssl openssl-devel openssl-static xz lzma xz-devel sqlite sqlite-devel gdbm gdbm-devel tk tk-devel
wget https://www.python.org/ftp/python/3.6.7/Python-3.6.7.tar.xz
tar -xvf Python-
cd Python-
yum -y install gcc
./configure
make
make install
ln /usr/local/bin/python3.6 /usr/bin/python3
ln /usr/local/bin/pip3.6 /usr/bin/pip3
pip3 install --upgrade pip
pip3 install -U jupyter
python3
from notebook.auth import passwd
passwd()
jupyter notebook --generate-config
//生成配置文件
vim ~/.jupyter/jupyter_notebook_config.py
//进入配置文件
c.NotebookApp.ip='0.0.0.0'
c.NotebookApp.allow_root=True
c.NotebookApp.password = u'刚才复制的sha1字符串'
c.NotebookApp.open_browser = False
c.NotebookApp.port =8888
jupyter notebook
nohup jupyter notebook > /jupyter.log 2>&1 &