首页 > 其他 > 详细

Jupyter-Notebook开机自启动

时间:2021-09-21 10:15:59      阅读:5      评论:0      收藏:0      [点我收藏+]
vim /etc/systemd/system/jupyter.service

  

[Unit]
Description=Jupyter Notebook
After=network.target
[Service]
Type=simple
ExecStart=/home/gc/anaconda3/bin/jupyter-notebook --config=/home/wewewt/.jupyter/jupyter_notebook_config.py --no-browser
User=wewewt
Group=wewewt
WorkingDirectory=/home/gc/py
#文件路径名
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target

  

systemctl enable jupyter #设置开机自启
systemctl start jupyter #启动

 

Jupyter-Notebook开机自启动

原文:https://www.cnblogs.com/gsxx/p/15312226.html

(0)
(0)
   
举报
评论 一句话评论(0
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!