20 字
1 分钟
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