如何在没有 Visual Studio 的情况下在 Windows 7 上安装服务? [英] How to install a service on windows 7 without Visual Studio?

查看:45
本文介绍了如何在没有 Visual Studio 的情况下在 Windows 7 上安装服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

安装 Windows 服务:Visual Studio 有一个实用程序:InstallUtil.exe.如果我有一个服务 MyService.exe 并且想在没有 Visual Studio 的 Windows 7 上安装它,我该如何安装它?

Install a windows service: there is a util with Visual Studio: InstallUtil.exe. If I have a service MyService.exe and want to install it on a windows 7 without Visual Studio on it, how can I install it?

推荐答案

您可以尝试 NSSM(Non-Sucking Service Manager),以防sc"无法正常工作.http://nssm.cc

You can try NSSM (Non-Sucking Service Manager) for the times the "sc" doesn't work quite as expected. http://nssm.cc

不久前我在 Go 中构建了一个服务,但无法在sc"下运行,nssm 运行良好.

I had an service I built in Go not too long ago that I could not get to run under "sc", nssm worked perfectly.

这篇关于如何在没有 Visual Studio 的情况下在 Windows 7 上安装服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆