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 frpc.service

文章作者: Tokisaki Galaxy
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 Tokisaki Galaxy !
  目录