新建windows服務並啓動過程

參考 http://www.javashuo.com/article/p-morqjgaq-gn.html 在這裏總結一下這個過程中踩過的坑: 運行.bat文件時,以管理員身份運行。 (1)serviceInstaller屬性配置 StartType改爲Automatic (2)serviceProcessInstaller屬性配置 Account改爲LocalSystem 否則即使管理員身份運行
相關文章
相關標籤/搜索