当前位置:   article > 正文

通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)

installutil.exe
  1. InstallUtil.exe CMD安装服务
  2. 1、InstallUtil.exe和安装服务放在同一文件夹下
  3. 2、DOS命令在安装目录 输入 cmd 进入安装目录
  4. 3、安装服务 InstallUtil.exe 服务文件名
  5. InstallUtil.exe TestTestService.exe
  6. 4、启动服务 net start 服务名
  7. net start MyServiceName
  8. 5、停止服务 net stop 服务名
  9. net stop MyServiceName
  10. 6、卸载服务 InstallUtil.exe /u 服务文件名
  11. InstallUtil.exe /u TestTestServicee.exe

批处理安装服务-YES开发框架网

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/一键难忘520/article/detail/981402
推荐阅读
相关标签
  

闽ICP备14008679号