--创建服务
sc.exe create MarkUploadFileWorkerService binPath=C:ProjectsMarkUploadFileServiceMarkUploadFileWorkerServiceinDebug
etcoreapp3.1MarkUploadFileWorkerService.exe
--添加服务描述
sc.exe description MarkUploadFileWorkerService "Laser Mark导入SUT数据库服务"
--查询服务
sc.exe query MarkUploadFileWorkerService
--启动服务
sc.exe start MarkUploadFileWorkerService
--停止服务
sc.exe stop MarkUploadFileWorkerService
--删除服务
sc.exe delete MarkUploadFileWorkerService