首页 > Windows开发 > 详细

.net core window与linux服务自启动

时间:2021-05-30 00:54:24      阅读:24      评论:0      收藏:0      [点我收藏+]

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

.net core window与linux服务自启动

原文:https://www.cnblogs.com/chinasoft/p/14826600.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!