.net core window与linux服务自启动

//根据操作系统处理启动方式
//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”

posted @ 2021-05-29 22:24  China Soft  阅读(331)  评论(0编辑  收藏  举报