自己的兩台機器測試
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.樹莓派
參考以下文章
點擊查看