赞
踩
pip installer Jupyter notebook
jupyter notebook --generate-config --allow-root
在根目录会生成.jupyter文件,是隐藏的
jupyter notebook password
输入密码并再次确认密码一致
enter password
verify password
c.NotebookApp.ip='*' # 星号代表任意ip,这个跟mysql的权限设置一样,所以说知识是互通的
c.NotebookApp.allow_remote_access = True # 运行远程登入
c.NotebookApp.port =9999 # 端口号设置为9999
jupyter notebook --allow-root &
地址为服务器ip+端口号(IP:端口)
在云服务器中搭建好jupyter将其关闭,终端输入以下代码(推荐第二种,第一种终端关了jupyter也关了,第二种一直开着,除非手动关闭)
第一种:
jupyter notebook --allow-root > jupyter.log 2>&1 &
第二种:
nohup jupyter notebook --allow-root > jupyter.log 2>&1 &
可以显示这个进程的pid.
ps -a
kill掉Jupyter进程
kill -9 PID
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。