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

/ 10,544评论 / 40623阅读 / 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. Arnoldscava说道:

    mexican drugstore online mexican pharmaceuticals online buying prescription drugs in mexico online

  2. NelsonSaIlk说道:

    mexican rx online: mexican drugstore online – mexico pharmacies prescription drugs

  3. NelsonSaIlk说道:

    pharmacies in mexico that ship to usa: best online pharmacies in mexico – best online pharmacies in mexico

  4. Waynetar说道:

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

  5. DominicHOr说道:

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

  6. Arnoldscava说道:

    reputable mexican pharmacies online mexico drug stores pharmacies medication from mexico pharmacy

  7. Dnrtazz说道:

    Привет!
    Купить документ университета вы сможете в нашем сервисе.
    ast-diploms.com/kupit-diplom-rostov-na-donu
    Успехов в учебе!

  8. Arnoldscava说道:

    purple pharmacy mexico price list п»їbest mexican online pharmacies buying from online mexican pharmacy

  9. Waynetar说道:

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

  10. Yu Rushiti说道:

    Very practical content, and you are welcome to visit my website! https://miauk.com/

  11. NelsonSaIlk说道:

    pharmacies in mexico that ship to usa: mexican online pharmacies prescription drugs – medicine in mexico pharmacies

  12. Arnoldscava说道:

    mexican mail order pharmacies mexican online pharmacies prescription drugs buying prescription drugs in mexico

  13. Arnoldscava说道:

    mexico drug stores pharmacies medication from mexico pharmacy mexico drug stores pharmacies

  14. Waynetar说道:

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

  15. Lazrybe说道:

    Здравствуйте!
    Мы можем предложить дипломы психологов, юристов, экономистов и прочих профессий по приятным тарифам.
    standart-rzn.ru/kvartiry-i-mkd/vychet-na-pokupku-doma-s-uchastkom

  16. DominicHOr说道:

    mexican mail order pharmacies: best online pharmacies in mexico – п»їbest mexican online pharmacies

  17. Dnrtico说道:

    Привет!
    Купить документ университета можно у нас в Москве.
    diplomyx.com/kupit-diplom-krasnoyarsk
    Хорошей учебы!

  18. Arnoldscava说道:

    mexican online pharmacies prescription drugs mexican pharmacy best online pharmacies in mexico

  19. Trefbtu说道:

    Добрый день!
    Как безопасно купить диплом колледжа или ПТУ в России, что важно знать
    yacina.net/купить-диплом-о-высшем-образовании-ре
    Рады оказать помощь!.

  20. NelsonSaIlk说道:

    mexican pharmaceuticals online: mexican online pharmacies prescription drugs – mexican drugstore online

  21. Waynetar说道:

    п»їbest mexican online pharmacies: buying from online mexican pharmacy – reputable mexican pharmacies online

  22. Waynetar说道:

    mexican online pharmacies prescription drugs: mexican border pharmacies shipping to usa – mexico pharmacies prescription drugs

  23. DominicHOr说道:

    mexican online pharmacies prescription drugs: mexican pharmaceuticals online – mexican border pharmacies shipping to usa

  24. NelsonSaIlk说道:

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

  25. DominicHOr说道:

    best online pharmacies in mexico: mexican mail order pharmacies – mexican online pharmacies prescription drugs

  26. Lazriwz说道:

    Добрый день!
    Заказать диплом любого университета.
    alex-neil.ru/index.php/cb-profile/pluginclass/cbblogs?action=blogs&func=show&id=233

  27. Arnoldscava说道:

    mexican border pharmacies shipping to usa mexico drug stores pharmacies mexican border pharmacies shipping to usa

  28. Arnoldscava说道:

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

  29. Mazrzsr说道:

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

  30. Uazryoj说道:

    Привет!
    Приобрести диплом о высшем образовании.
    upuge.com/read-blog/31709_osnovnye-zatraty-sovremennogo-izgotovitelya-dokumentov-obzor.html

  31. Lazrjqn说道:

    Здравствуйте!
    Мы готовы предложить дипломы любой профессии по доступным ценам.
    lgzprojects.co.za/2024/06/30/куплю-диплом-рф

  32. NelsonSaIlk说道:

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

  33. NelsonSaIlk说道:

    best online pharmacies in mexico: buying prescription drugs in mexico – medication from mexico pharmacy

  34. Waynetar说道:

    mexican pharmaceuticals online: best online pharmacies in mexico – mexican pharmaceuticals online

  35. DominicHOr说道:

    buying prescription drugs in mexico: mexico drug stores pharmacies – mexico pharmacies prescription drugs

  36. Arnoldscava说道:

    mexican online pharmacies prescription drugs medication from mexico pharmacy buying prescription drugs in mexico online

  37. Tooft说道:

    Opt in or out of the Apple News Newsletter under Email from Apple News. Microsoft won’t renew the contracts for dozens of news production contractors working at MSN and plans to use artificial intelligence to replace them, several people close to the situation confirmed on Friday. Still, overall it is great to see MSN News get the black treatment, which works much better for night time reading. If you’re not on any of the Insider rings you can take a peek at these screenshots to see what full dark mode is like. According to the iOS app’s privacy label, the data being used to track users across websites and apps owned by other companies includes the User ID. By comparison, Google News does not include a tracking section. Both Microsoft Start and Google News collect a host of “data linked to you,” like location, identifiers, search history, usage data, contact info, and more. The website itself, however, only links to Microsoft’s general privacy policy.
    https://robotech.com/forums/viewthread/2223384
    Support Local Green News Subscribe to our newsletter Interested in more stories about Dallas Fort Worth International Airport? Log in and start following the topic to get the latest… Get hyperlocal forecasts, radar and weather alerts. Texas Gov. Greg Abbott warned Thursday, “We are dealing with one of the most significant icing events … in at least several decades.” Over 150 students and community members gathered at the University of Texas at Arlington and Globe Life Field to protest the ongoing war in Gaza. Interested in more stories about Dallas Fort Worth International Airport? Log in and start following the topic to get the latest… WDIV brings the ‘cube’ from Houston sister station to Detroit Supporters say motorists have a choice between driving on toll lanes or free roads, but critics say it’s not about choice, it’s about affordability.

  38. Arnoldscava说道:

    best online pharmacies in mexico buying from online mexican pharmacy mexican border pharmacies shipping to usa

  39. This is a good affecting look at this specific point. I am delighted you discussed your views as well as knowledge and I discovered that i believe I agree. I truly respect the very clear writing additionally , the effort and hard work you’ve you spend writing this post. Loads of thanks yous for that decent work and good luck with the site, I am looking forward to updates within the future.

  40. DominicHOr说道:

    medication from mexico pharmacy: pharmacies in mexico that ship to usa – п»їbest mexican online pharmacies

  41. Arnoldscava说道:

    buying prescription drugs in mexico mexican mail order pharmacies mexico pharmacy

  42. NelsonSaIlk说道:

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

  43. Arnoldscava说道:

    medicine in mexico pharmacies mexican mail order pharmacies mexico drug stores pharmacies

  44. Mazrmjn说道:

    Здравствуйте!
    Как официально купить аттестат 11 класса с упрощенным обучением в Москве
    mandiplomiks.ru

  45. DominicHOr说道:

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

  46. Diplomi_oxol说道:

    Привет, друзья!
    Купить документ о получении высшего образования можно в нашей компании в столице.
    diplomyx.com/kupit-diplom-perm

  47. Arnoldscava说道:

    mexican online pharmacies prescription drugs medication from mexico pharmacy reputable mexican pharmacies online

发表回复

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