20 字
1 分钟
Creating a New Service in Linux
sudo nano /lib/systemd/system/xxx.service[Unit]Description=Your Service NameAfter=network.target syslog.targetWants=network.target
[Service]Type=simpleExecStart=Your File Path
[Install]WantedBy=multi-user.targetsystemctl daemon-reloadsystemctl start xxx.service Creating a New Service in Linux
https://tski.uk/blog/en/linux-new-service/