zoukankan      html  css  js  c++  java
  • 开机自启动相关程序

    软件下载:https://github.com/kohsuke/winsw/releases

    第一步:重命名WinSW.NET2.exe/WinSW.NET4.exe 为您所需要的.exe文件,主要是方便生成服务名称。

    如:如果您的windows服务器开机需要启动nginx,则您可以命名为:nginx-service.exe

    第二步:重命名配置文件,官网提供sample-allOptions.xml 和 sample-minimal.xml,重命名为:nginx-service.xml

    第三步:修改xml文件,

    <configuration>
     
    <!-- ID of the service. It should be unique accross the Windows system-->
    <id>nginx</id>
    <!-- Display name of the service -->
    <name>nginx service</name>
    <!-- Service description -->
    <description>High Performance Nginx Service</description>
     
    <!-- Path to the executable, which should be started -->
    <executable>D: ginx-1.14.0 ginx.exe</executable>

    </configuration>
     
    第四步:通过cmd命令,安装服务 D: ginx-1.14.0 ginx-service.exe install
    第五步:启动服务
  • 相关阅读:
    ASP.NET
    JS、JQury
    ASP.NET
    ASP.NET
    ASP.NET
    C#
    C#
    C#
    基础算法-树:预备知识
    开发环境配置--Ubuntu+Qt4+OpenCV(二)
  • 原文地址:https://www.cnblogs.com/eshinex/p/9900677.html
Copyright © 2011-2022 走看看