[WinSW]Windows下把程序注册为系统服务(程序后台运行/自启动)

/ 2,079评论 / 10377阅读 / 5点赞

WinSW

* WinSW(Windows Service Wrapper)是一个开源项目,它可以让我们快速把一个可执行的程序注册为Windows的系统服务。

* 可以使得程序可以自启动,或者是可以关闭cmd窗口后保持运行。


环境


使用方法

<?xml version="1.0" encoding="UTF-8" ?>
<service>
  <id>nginx</id>
  <name>nginx</name>
  <description>nginx</description>
  <executable>D:\0Acoolight\App\nginx\nginx-1.20.2\nginx.exe</executable>
  <logpath>D:\0Acoolight\App\nginx\nginx-1.20.2\</logpath>
  <logmode>roll</logmode>
  <depend></depend>
  <startargument>-p D:\0Acoolight\App\nginx\nginx-1.20.2</startargument>
  <stopargument>-p D:\0Acoolight\App\nginx\nginx-1.20.2 -s stop</stopargument>
</service>

调整服务为自启动

手动启动服务

  1. Marcelcrolf说道:

    https://indiaph24.store/# Online medicine order

  2. StevenSen说道:

    medication from mexico pharmacy: Mexican Pharmacy Online – mexican pharmaceuticals online

  3. Michaelsew说道:

    http://mexicoph24.life/# mexico drug stores pharmacies

  4. RickyAlage说道:

    world pharmacy india Generic Medicine India to USA buy prescription drugs from india

  5. Marcelcrolf说道:

    https://mexicoph24.life/# medicine in mexico pharmacies

  6. RickyAlage说道:

    mexico drug stores pharmacies mexico pharmacy buying from online mexican pharmacy

  7. Marcelcrolf说道:

    http://mexicoph24.life/# mexico drug stores pharmacies

  8. Michaelsew说道:

    http://canadaph24.pro/# cheap canadian pharmacy

  9. RickyAlage说道:

    online canadian pharmacy reviews Certified Canadian Pharmacies canadian pharmacy ltd

  10. StevenSen说道:

    mexican drugstore online: mexican pharmacy – mexican border pharmacies shipping to usa

  11. Marcelcrolf说道:

    https://mexicoph24.life/# pharmacies in mexico that ship to usa

  12. Marcelcrolf说道:

    https://mexicoph24.life/# medication from mexico pharmacy

  13. Michaelsew说道:

    https://indiaph24.store/# world pharmacy india

  14. Marcelcrolf说道:

    https://canadaph24.pro/# canadian pharmacy in canada

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注