* windowPowerShell 创建服务 New-Service -Name devApi -BinaryPathName "D:\website\dev\Dev.Api\bin\Release\net6.0\publish\Dev.Api.exe" 查看状态 Get-Service -Name devApi 启动服务 Start-Service -Name devApi 停止服务 Stop-Service -Name devApi 删除服务 Remove-Service -Name devApi * cmd 管理员 创建服务 sc create "devApi" binPath=D:\website\dev\Dev.Api\bin\Release\net6.0\publish\Dev.Api.exe 启动服务 sc start devApi 删除服务 sc delete devApi 停止服务 sc stop devApi 查看状态 sc query devApi */
标签:服务,Name,Service,devApi,Dev,命令,构建,sc From: https://www.cnblogs.com/elsons/p/17016690.html