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

/ 10,546评论 / 40636阅读 / 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. Lazrxrk说道:

    Здравствуйте!
    Заказать диплом о высшем образовании.
    ls.monetka.in.ua/2024/07/04/kak-nayti-proverennyy-onlayn-magazin-s-obshirnym-vyborom-diplomov

  2. Waynetar说道:

    mexican pharmaceuticals online: mexican pharmaceuticals online – mexico drug stores pharmacies

  3. DominicHOr说道:

    mexico drug stores pharmacies: mexican rx online – buying prescription drugs in mexico online

  4. Arnoldscava说道:

    mexico drug stores pharmacies mexican online pharmacies prescription drugs mexican online pharmacies prescription drugs

  5. NelsonSaIlk说道:

    п»їbest mexican online pharmacies: best online pharmacies in mexico – medication from mexico pharmacy

  6. Lazrmgy说道:

    Привет, друзья!
    Купить диплом о высшем образовании.
    dervislergrup.com/events/event/10-obsirnyi-katalog-dokumentov-v-izvestnom-internet-magazine

  7. NelsonSaIlk说道:

    mexican pharmaceuticals online: п»їbest mexican online pharmacies – mexican online pharmacies prescription drugs

  8. Waynetar说道:

    mexican pharmaceuticals online: mexico drug stores pharmacies – mexico drug stores pharmacies

  9. Waynetar说道:

    mexico drug stores pharmacies: mexico pharmacies prescription drugs – mexican mail order pharmacies

  10. DominicHOr说道:

    mexican mail order pharmacies: mexican drugstore online – best online pharmacies in mexico

  11. Trefozr说道:

    Здравствуйте!
    Узнайте стоимость диплома высшего и среднего образования и процесс получения
    nichtsdestotrotz.com/category/fitness/page/6
    Рады оказаться полезными!.

  12. Arnoldscava说道:

    mexican mail order pharmacies mexico pharmacy mexican border pharmacies shipping to usa

  13. DominicHOr说道:

    medication from mexico pharmacy: best online pharmacies in mexico – pharmacies in mexico that ship to usa

  14. Danrgfc说道:

    Здравствуйте!
    Мы изготавливаем дипломы любых профессий.
    grad-khv.ru/kak-kupit
    Рады помочь!.

  15. Arnoldscava说道:

    medicine in mexico pharmacies buying prescription drugs in mexico online pharmacies in mexico that ship to usa

  16. NelsonSaIlk说道:

    mexican online pharmacies prescription drugs: buying prescription drugs in mexico – reputable mexican pharmacies online

  17. Mazrghg说道:

    Здравствуйте!
    Как приобрести аттестат о среднем образовании в Москве и других городах
    mans-diplomyxx.ru

  18. NelsonSaIlk说道:

    mexico drug stores pharmacies: medication from mexico pharmacy – mexican rx online

  19. Trefwxg说道:

    Здравствуйте!
    Официальная покупка школьного аттестата с упрощенным обучением в Москве
    gaigoimoinhat.xyz/купить-диплом-о-высшем-образовании-со
    Поможем вам всегда!.

  20. Waynetar说道:

    mexican drugstore online: mexican border pharmacies shipping to usa – pharmacies in mexico that ship to usa

  21. Arnoldscava说道:

    buying prescription drugs in mexico п»їbest mexican online pharmacies mexican rx online

  22. DominicHOr说道:

    mexican border pharmacies shipping to usa: mexico drug stores pharmacies – medicine in mexico pharmacies

  23. Arnoldscava说道:

    mexican mail order pharmacies medication from mexico pharmacy best online pharmacies in mexico

  24. Waynetar说道:

    buying prescription drugs in mexico online: reputable mexican pharmacies online – buying prescription drugs in mexico

  25. DominicHOr说道:

    reputable mexican pharmacies online: mexican drugstore online – buying from online mexican pharmacy

  26. Manrerx说道:

    Привет, друзья!
    Заказать документ о получении высшего образования
    asxdiplomik24.ru/kupit-diplom-o-srednem-obrazovanii

  27. NelsonSaIlk说道:

    mexican pharmaceuticals online: pharmacies in mexico that ship to usa – buying from online mexican pharmacy

  28. Xazrmxz说道:

    Здравствуйте!
    Как избежать рисков при покупке диплома колледжа или ПТУ в России
    arusak-diploms-srednee.ru/kupit-diplom-v-krasnodare

  29. Arnoldscava说道:

    medication from mexico pharmacy medicine in mexico pharmacies п»їbest mexican online pharmacies

  30. Arnoldscava说道:

    medicine in mexico pharmacies mexican border pharmacies shipping to usa п»їbest mexican online pharmacies

  31. Tooft说道:

    You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page. Live! Casino in Hanover forms part of a chain of casinos that also includes locations in Pennsylvania. Live! Casino & Hotel has won multiple awards for its casino, and for good reason: you can play table games, slots, and poker tournaments. Plus, the Live! Rewards Club gives you the chance to rack up points every time you play. Presently, Louisiana does not offer regulated online casinos. However, the state offers 20 land-based and riverboat casinos, four Tribal casinos, and several racinos. Additionally, LA bettors can enjoy retail and online sports betting. Since regulated online casinos are yet to make an appearance, players in the state must use offshore online casinos instead.
    https://www.curioos.com/allreviews
    When a close friend meets an untimely end, Charlie Cale, a casino cocktail waitress with an uncanny knack for identifying lies, is determined to unravel these mysterious events. Charlie faces her greatest challenge yet when she is caught in the crossfire of a deadly power play that puts her in the sights of two ruthless crime syndicates and the FBI. We may earn commission from links on this page, but we only recommend products we back. Poker Face is an Allentown-based rock band labeled xenophobic and anti-Semitic by the Anti-Defamation League. Towne is challenging incumbent Charlie Dent. This brings us to the showdown: the moment in which Charlie explains to her enemies how she bested them and hopes she survives it. Usually, this scene annoys me in a way that says more about me as a viewer than the show, which is just doing its best to adapt detective genre tropes to the outlandish situation at hand. (They’re going to attack you! You’ve been here!) This week, though, it was both genuinely hilarious and menacing. It might be the first time I’ve felt Charlie’s been in real peril, tumbling around with women old enough to have knitting needles on hand to weaponize. Charlie takes one to the calf, not to mention a frying pan to the head. To her credit, Charlie effectively uses a blossom of talcum powder in her defense.

  32. Waynetar说道:

    п»їbest mexican online pharmacies: mexican drugstore online – mexican border pharmacies shipping to usa

  33. DominicHOr说道:

    п»їbest mexican online pharmacies: mexico drug stores pharmacies – pharmacies in mexico that ship to usa

  34. Arnoldscava说道:

    buying prescription drugs in mexico online buying prescription drugs in mexico mexican rx online

  35. NelsonSaIlk说道:

    mexico drug stores pharmacies: mexican border pharmacies shipping to usa – buying prescription drugs in mexico

  36. Mazruas说道:

    Добрый день!
    Полезная информация как официально купить диплом о высшем образовании
    diplomman.ru

  37. NelsonSaIlk说道:

    medicine in mexico pharmacies: mexican online pharmacies prescription drugs – п»їbest mexican online pharmacies

  38. Waynetar说道:

    mexican pharmaceuticals online: buying prescription drugs in mexico – medication from mexico pharmacy

  39. Waynetar说道:

    pharmacies in mexico that ship to usa: buying prescription drugs in mexico online – mexico drug stores pharmacies

  40. DominicHOr说道:

    mexican online pharmacies prescription drugs: best online pharmacies in mexico – mexican rx online

  41. DominicHOr说道:

    mexico pharmacies prescription drugs: buying prescription drugs in mexico – п»їbest mexican online pharmacies

  42. Arnoldscava说道:

    mexican rx online mexican pharmacy mexico drug stores pharmacies

  43. Arnoldscava说道:

    mexican rx online best online pharmacies in mexico buying prescription drugs in mexico online

  44. Danreyv说道:

    Добрый день!
    Мы предлагаем дипломы любой профессии.
    controlcompany.com.pe/купить-диплом-юфу
    Будем рады вам помочь!.

  45. музыкальное оборудование для актового зала музыкальное оборудование для актового зала .

发表回复

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