20 字
1 分钟
Linux新建服务
sudo nano /lib/systemd/system/xxx.service
[Unit]
Description=Your Service Name
After=network.target syslog.target
Wants=network.target
[Service]
Type=simple
ExecStart=Your File Path
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl start xxx.service
Linux新建服务
https://tski.uk/blog/linux-new-service/
作者
Tokisaki Galaxy
发布于
2020-02-05
许可协议
CC BY