zoukankan      html  css  js  c++  java
  • Windows服务BAT命令-安装、卸载、启动、停止

    1、安装服务

    %SystemRoot%Microsoft.NETFrameworkv4.0.30319installutil.exe D:WiseMESMES.WindowsService.exe
    Net Start AOIService
    sc config AOIService start= auto
    pause

    2、卸载服务

    %SystemRoot%Microsoft.NETFrameworkv4.0.30319installutil.exe /u D:WiseMESMES.WindowsService.exe
    pause

    3、命令参数说明

    复制代码
    net start 服务名  //启动服务
    net stop 服务名  //停止服务
    
    用sc可打开被禁用的服务,语法是:【Start=号后面有空格】 
    sc config 服务名 start= demand //手动 
    sc config 服务名 start= auto //自动 
    sc config 服务名 start= disabled //禁用 
    sc start 服务名 
    sc stop 服务名
  • 相关阅读:
    精准测试
    git 管理
    git
    代码覆盖率测试
    vue 前端视频
    jenkins
    go学习资料
    4-4 求自定类型元素的平均
    4-3 简单求和
    4-2 多项式求值
  • 原文地址:https://www.cnblogs.com/liqing1009/p/10251679.html
Copyright © 2011-2022 走看看