一、创建服务脚本
#vim /usr/lib/systemd/system/jupyter.service
[Unit]
Description=Jupyter Management
After=network.target
[Service]
User=root
Group=root
ExecStart= /opt/miniconda3/bin/jupyter-notebook --allow-root
Restart=on-failure
RestartSec=10
[Install]
WantedBy=multi-user.target
二、重载systemctl
#systemctl daemon-reload
三、配置开机启动
#systemctl enable jupyter
四、启动jupyter
#systemctl start jupyter
五、检测服务端口是否启动
#netstat -na |grep 8888
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN