Windows 安装服务 的两种方式
2018-10-17 15:52
218 查看
第一种 - 安装服务时自定义服务名称:
(注意 binpath= 和路径之间的那个空格)
sc create 服务名称 binpath= "D:\Service.exe" displayname= "显示名称" depend= Tcpip start= auto (启动类型)
第二种 - 安装目录服务:
C:\Windows\Microsoft.NET\Framework\v4.0.30319 下 2.0也有
InstallUtil.exe D:\Service.exe
卸载服务
InstallUtil.exe /u D:\Service.exe
相关文章推荐
- windows10+anaconda2+xgboost0.6的安装,VS和MinGW两种方式
- windows系统下安装weblogic的两种方式之二:脚本方式安装
- windows安装nvm的两种方式
- windows系统下安装weblogic的两种方式之一:图形界面安装
- MongoDb在windows下的安装与以auth方式启用服务
- tomcat非安装方式 - 添加windows服务启动方式
- MongoDB 3.4 安装以 Windows 服务方式运行
- 批处理安装Windows服务,提示"InstallUtil.exe"不是内部命令也不是外部命令解决方式
- .Net实现Windows服务安装完成后自动启动的两种方法
- windows 2008下服务无法安装的解决方式
- MySql入门(2-1)windows下安装mysql的两种方式
- tomcat非安装方式,添加windows服务启动方式
- Visual Studio 2012的Windows Service服务安装方式
- kafka 以windows服务的方式在windows下安装并自启动
- tomcat非安装方式,添加windows服务启动方式
- MongoDB 3.4 安装以 Windows 服务方式运行的详细步骤
- install redis service as windows service in windows platform--在windows平台下以windows服务方式安装redis
- Confluence 6 Windows 中以服务方式自动重启为服务手动安装 Confluence
- Windows Service 使用参数安装DEMO,可使用控制台启动方式进行调试,服务安装完后立即启动