Linux新建服务 1sudo nano /lib/systemd/system/xxx.service 1234567891011[Unit]Description=Your Service NameAfter=network.target syslog.targetWants=network.target[Service]Type=simpleExecStart=Your File Path[Install]WantedBy=multi-user.target 12systemctl daemon-reloadsystemctl start xxx.service Linux #Linux #service Linux新建服务 https://tokisaki.top/blog/linux-new-service/ 作者 Tokisaki Galaxy 发布于 2020年2月5日 许可协议 RPi使用Screen 上一篇 RPi搭建DNS服务器 下一篇