Windows service 的安装卸载步骤:

  1. 管理员权限打开cmd, cd 到exe文件路径
  2. 安装命令:TestService.exe -i -n FirstService
  3. 卸载命令:TestService.exe -u -n FirstService

如果service有因为某些特殊的原因(如网络等)会自动stop,那么可以考虑打开服务的自动恢复配置,在服务的属性中打开,如下图
Windows service 安装与自动重启设置

相关文章:

  • 2021-06-25
  • 2021-12-25
  • 2021-12-20
  • 2022-12-23
  • 2022-01-25
猜你喜欢
  • 2021-10-05
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
相关资源
相似解决方案