设置jupyter-notebook开机自启动

自己的两台机器测试

1.阿里云服务器 centos8

sudo nano /etc/rc.local
#在exit 0 前加入以下命令
nohup /root/anaconda3/bin/jupyter-notebook --allow-root --notebook-dir=~  > ~/temp/jupyterout.log 2>&1 &
#      指定服务项                           root身份       工作路径          重定向输出
#添加权限 
chmod +x /etc/rc.d/rc.local
chmod +x /etc/rc.local

2.树莓派
参考以下文章
点击查看

posted @ 2021-02-19 13:41  _南归  阅读(1585)  评论(0)    收藏  举报