通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
来源:互联网 发布:baocms7.8完整源码 编辑:程序博客网 时间:2024/05/22 17:31
步骤:
1。运行--〉cmd:打开cmd命令框
2。在命令行里定位到InstallUtil.exe所在的位置
InstallUtil.exe 默认的安装位置是在C:/Windows/Microsoft.NET/Framework/v2.0.50727里面,所以你要在cmd里通过cd定位到该位置(cd C:/Windows/Microsoft.NET/Framework/v2.0.50727)
3。操作命令:
1). 安装服务命令:在命令行里输入下面的命令:
InstallUtil.exe Path/WinServiceName.exe
其中Path表示ServiceName.exe所在的位置,回车即可
2). 启动服务命令
net start ServiceName
ServiceName是真正的Service的名称(ServiceBase.ServiceName),跟.exe的名称可能一样,也可能不一样。如果不清楚,就到已安装的服务里面找到你的服务,右键属性里面看服务名称
3). 停止服务命令
net stop ServiceName
4). 卸载服务命令:在命令行里输入下面的命令:
InstallUtil.exe /u Path/WinServiceName.exe
其中Path表示ServiceName.exe所在的位置,回车即可
阅读全文
0 0
- C# windows服务:通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- C# windows服务:通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- C# windows服务:通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- C# windows服务:通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- C# windows服务:通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、调试 卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- 用vs命令提示符来使用 Installutil.exe来安装和卸载Windows服务
- 服务(安装 卸载 启动 停止)命令
- Java通过CMD命令启动和停止外部应用程序
- windows服务(安装/启动/卸载/停止)批处理代码
- 不使用installutil.exe安装WINDOWS服务
- 不使用installutil.exe安装WINDOWS服务
- 不使用installutil.exe安装WINDOWS服务
- Kubernetes总架构图
- 算法 c语言 冒泡排序改进
- win7下intellij IDEA中使用JDBC连接虚拟机中的phoenix
- 跳马问题
- Codeforces Round #425 (Div. 2) B. Petya and Exam
- 通过cmd命令安装、卸载、启动和停止Windows Service(InstallUtil.exe)
- jackson解析json
- Win10百度云8秒视频怎么破?防止百度云视频变成8秒视频的方法!
- 解决notepad++中英文混编的换行问题
- PHP的异常处理
- Springboot中使用缓存
- json范例2
- 选择排序
- 链表——头结点式1