windows 服务安装和卸载
2017-10-13 14:55
204 查看
首先必须以管理员方式打开DOS界面;下面包含两种方式:
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
第一种 - 安装服务时自定义服务名称:
sc create 服务名称 binpath= "D:\Service.exe" displayname= "显示名称" depend= Tcpip start= auto (启动类型)
第二种 - 安装目录服务:
InstallUtil.exe D:\Service.exe
卸载服务
InstallUtil.exe /u D:\Service.exe
cd C:\Windows\Microsoft.NET\Framework\v4.0.30319
第一种 - 安装服务时自定义服务名称:
sc create 服务名称 binpath= "D:\Service.exe" displayname= "显示名称" depend= Tcpip start= auto (启动类型)
第二种 - 安装目录服务:
InstallUtil.exe D:\Service.exe
卸载服务
InstallUtil.exe /u D:\Service.exe
相关文章推荐
- Windows下用cmd命令安装及卸载服务(
- Windows系统使用cmd命令安装和卸载服务
- 安装 启动 停止 卸载 Windows服务 c#
- .net windows 服务创建、安装、卸载和调试
- windows系统命令服务安装卸载
- C#制作Windows service服务系列一:制作一个可安装、可启动、可停止、可卸载的Windows
- Mongodb的windows服务安装和卸载
- Windows系统下用命令行安装及卸载服务
- C# 创建、安装和卸载Windows服务程序
- C#windows service C#windows 服务安装卸载SC
- windows服务的安装卸载,修改执行路径(转)
- C#代码安装、卸载、监控Windows服务
- windows下安装、卸载mysql服务
- 批处理 windows 服务的安装与卸载
- Mongodb的windows服务安装和卸载
- 安装、卸载windows服务到系统
- Mongodb的windows服务安装和卸载
- 创建windows定时,系统服务,卸载和安装详细步骤
- 安装卸载Windows服务,修改windows服务执行路径!
- Mongodb的windows服务安装和卸载