//根据操作系统处理启动方式
//How to run a .NET Core console app as a service using Systemd on Linux
//https://swimburger.net/blog/dotnet/how-to-run-a-dotnet-core-console-app-as-a-service-using-systemd-on-linux
//https://csharp.christiannagel.com/2019/10/15/windowsservice/

sc create “Devcat Service” binPath=D:\devcat\DevCat.exe
sc query “Devcat Service”
sc start “Devcat Service”
sc stop“Devcat Service”
sc delete“Devcat Service”

标签: linux, core, Service, run, app, window, 自启动, sc, Devcat

相关文章推荐

添加新评论,含*的栏目为必填