jupyter备份 发表于 2019-08-17 | 分类于 jupyter 1234567891011121314151617181920212223242526pip3 install jupyter vi /usr/share/vim/vim*/defaults.vim (set mouse-=a) sed -i -e 's/mouse=a/mouse-=a/g' /usr/share/vim/vim*/defaults.vim jupyter notebook --generate-config jupyter contrib nbextension install --user --skip-running-checkvi /root/.jupyter/jupyter_notebook_config.py rm /etc/nginx/sites-enabled/default ln -s /root/flask_nginx.conf /etc/nginx/conf.d/setsid uwsgi --ini /root/flask_uwsgi.ini &nohup jupyter notebook --allow-root > jupyter.log 2>&1 &service nginx restart 12from notebook.auth import passwdpasswd() 1234567891011# 允许通过任意绑定服务器的ip访问c.NotebookApp.ip = '*'# 用于访问的端口c.NotebookApp.port = 8527# 不自动打开浏览器c.NotebookApp.open_browser = False# 设置登录密码c.NotebookApp.password = 'sha1:14855cd59712:1cf1063d38e08cd2703a07a52b66714281676b6d'# 设置默认目录c.NotebookApp.notebook_dir = u'/root/'c.NotebookApp.base_url = '/jupyter/'