要安装windows service 首先要找到 InstallUtil.exe,InstallUtil.exe位置在 C:\Windows\Microsoft.NET\Framework\v4.0.30319,用什么版本写的服务,找到对应版本,各个版本不同详见(C:\Windows\Microsoft.NET\Framework\版本

然后使用命令

安装服务

InstallUtil.exe  服务路径/windowsServiceName.exe

快捷安装:直接找到对应的 installutil.exe,拖cmd中,再拖你服务的位置路径下的服务名称.exe,(win10 以上系统支持)

启动该服务

net start windowsServiceName

停止服务

net stop windowsServiceName

卸载服务

InstallUtil.exe /u 服务路径/windowsServiceName.exe

 

通过cmd 使用 InstallUtil.exe 命令 操作 windows服务  Windows Service

 

相关文章:

  • 2021-12-28
  • 2021-11-17
  • 2021-08-01
  • 2021-11-04
  • 2021-08-28
  • 2021-11-02
  • 2021-09-16
猜你喜欢
  • 2021-11-04
  • 2021-11-14
  • 2021-11-27
  • 2021-08-15
  • 2021-12-23
  • 2018-04-27
  • 2021-11-27
  • 2021-06-27
相关资源
相似解决方案