服務器中使用sc.exe工具部署Windows服務

sc.exe create XCGWebApp BinPath=E:\SitePublish\XCGWebApp\XCGWebApp.exe
## 啓動服務
sc.exe start XCGWebApp
## 停止服務
sc.exe stop XCGWebApp
## 刪除服務
sc.exe delete XCGWebApp
## 添加服務描述
sc description XCGWebApp "XCG"
## 改變服務的啓動方式 手動/自動/禁用
sc.exe config XCGWebApp start= demand/auto/disabled
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章