安装anaconda
(1)安装anaconda
1.下载 Anaconda3-5.3.1-Linux-x86_64.sh到../software
sudo wget https://repo.continuum.io/archive/Anaconda3-5.1.0-Linux-x86_64.sh && bash Anaconda3-5.1.0-Linux-x86_64.sh
2. 回车(Enter)接受协议,并输入yes;
3.输入安装路径(路径不能存在 ../data/soft/anaconda)

4. 安装完成后,会询问如下图的情况,输入yes

5.输入 source ~/.bashrc
(2)配置jupyter
1.生成配置文件
jupyter notebook --generate-config
此时会在/root/.jupyter/下面生成一个jupyter_notebook_config.py文件,用于jupyter的相关配置
2. 设置密码(可以不设置密码)
#from notebook.auth import passwd #passwd()
你输入密码,然后确认密码,最后生成秘钥,'sha1:....23464161'
3.修改配置文件
vim ~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.allow_root = True
c.NotebookApp.ip = '*'
c.NotebookApp.port = 5200
c.NotebookApp.open_browser = False
c.NotebookApp.notebook_dir="/home/kg/qiaoruihua/jupyter_qiao"
#c.NotebookApp.password = u'sha1:....23464161'
4.关机重启
jupyter notebook
5. 若不需要密码,则注释掉配置文件里的c.NotebookApp.password
6.后台运行:
后台启动jupyter :nohup jupyter notebook &
查看后台运行程序 :jobs -l
杀死进程:kill -9
7.查看token
jupyter notebook list
http://localhost:5200/?token=.....686df84cdeb5c43388afb565821e5 :: /home/qiaoruihua/jupyter
posted on 2020-04-08 12:22 happygril3 阅读(187) 评论(0) 收藏 举报
浙公网安备 33010602011771号