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

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

    After I initially commented I appear to have clicked on the -Notify me when new comments are added- checkbox and from now on each time a comment is added I receive four emails with the same comment. Perhaps there is a means you are able to remove me from that service? Cheers.

  2. Diplomi_asol说道:

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

  3. Eanrjro说道:

    Здравствуйте!
    Мы предлагаем дипломы любых профессий по приятным тарифам.
    wutdawut.com/read-blog/2062_nadezhnyj-onlajn-magazin-s-ogromnym-katalogom-diplomov.html?mode=day

  4. Dnrtflx说道:

    Здравствуйте!
    Заказать документ о получении высшего образования вы можете в нашей компании в Москве.
    diplomyx24.ru/kupit-diplom-nizhnij-novgorod
    Удачи!

  5. Diplomi_gfst说道:

    купить диплом в домодедово diploms-x.com .

  6. Danrozt说道:

    Добрый день!
    Мы готовы предложить дипломы любых профессий.
    iladuanas.com/отзывы-о-купить-диплом/
    Рады оказать помощь!.

  7. Jamesjer说道:

    п»їcipro generic: where to buy cipro online – buy cipro cheap

  8. Jamesjer说道:

    can you buy doxycycline over the counter nz: doxycycline nz cost – doxycycline 50 mg price

  9. Robertphits说道:

    Jennifer Lopez https://lets-get-loud.jenniferlopez-ar.com was born in 1969 in the Bronx, New York, to parents who were Puerto Rican immigrants.

  10. ThomasInace说道:

    https://paxloviddelivery.pro/# Paxlovid buy online

  11. Diplomi_msol说道:

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

  12. ngentot说道:

    You’ve made some really good points there. I checked on the web to learn more about the issue and found most individuals will go along with your views on this site.

  13. Tazrymh说道:

    Привет, друзья!
    Купить диплом о высшем образовании
    http://www.jointcorners.com/read-blog/78325

  14. Treftpi说道:

    Привет, друзья!
    Как получить диплом стоматолога быстро и официально
    ashinova.ru/category-5/t-1525.html#1576
    Рады помочь!.

  15. KennethRorie说道:

    When Taylor Swift https://shake-it-off.taylor-swift-ar.com released “Shake It Off” in 2014, she had no idea how much the song would impact her life and music career.

  16. Lazrbcm说道:

    Привет!
    Где заказать диплом по нужной специальности?
    Заказать диплом ВУЗа.
    158.160.31.233/blogs/1/kak-nayti-proverennyy-onlayn-magazin-s-ogromnym-katalogom-diplomov.php

  17. ThomasInace说道:

    http://paxloviddelivery.pro/# paxlovid generic

  18. Robertlot说道:

    Priyanka Chopra https://baywatch.priyankachopra-ar.com is an Indian actress, singer, film producer and model who has achieved global success.

  19. ThomasInace说道:

    http://clomiddelivery.pro/# cost generic clomid no prescription

  20. Uazrolq说道:

    Привет, друзья!
    Где заказать диплом по актуальной специальности?
    irishpal.com/read-blog/921
    Хорошей учебы!

  21. MatthewBup说道:

    Liverpool https://england.liverpool-ar.com holds a special place in the history of football in England.

  22. ThomasInace说道:

    https://amoxildelivery.pro/# buy amoxicillin 500mg usa

  23. Raymondjoirl说道:

    Автомобили Hongqi https://hongqi-krasnoyarsk.ru в наличии – официальный дилер Hongqi Красноярск

  24. Lazrbyi说道:

    Здравствуйте!
    Где заказать диплом по актуальной специальности?
    Приобрести диплом любого университета.
    158.160.31.233/blogs/1/kak-nayti-proverennyy-onlayn-magazin-s-ogromnym-katalogom-diplomov.php

  25. Eanriaz说道:

    Привет!
    Мы предлагаем дипломы любой профессии по выгодным ценам.
    bankendigital.de/дипломы-купить-в-кирове/

  26. ThomasInace说道:

    https://ciprodelivery.pro/# buy ciprofloxacin over the counter

  27. Cazryik说道:

    Привет, друзья!
    Мы готовы предложить документы ВУЗов, которые находятся на территории всей России. Можно купить качественно сделанный диплом от любого заведения, за любой год, указав актуальную специальность и оценки за все дисциплины. Документы печатаются на бумаге высшего качества. Это дает возможность делать настоящие дипломы, не отличимые от оригиналов. Документы будут заверены всеми требуемыми печатями и штампами.
    webmentes.com/read-blog/200

  28. Jamesjer说道:

    doxycycline prescription canada: can i buy doxycycline over the counter in europe – can i buy doxycycline over the counter

  29. ThomasInace说道:

    https://clomiddelivery.pro/# can i get generic clomid without dr prescription

  30. Cazrhvl说道:

    Привет!
    Мы можем предложить документы ВУЗов, которые расположены на территории всей РФ. Можно заказать качественный диплом за любой год, указав актуальную специальность и хорошие оценки за все дисциплины. Документы выпускаются на “правильной” бумаге самого высокого качества. Это дает возможности делать настоящие дипломы, которые невозможно отличить от оригинала. Документы будут заверены необходимыми печатями и штампами.
    1zvgk3zxu.blogpayz.com/28328296/%D0%9A%D0%B0%D0%BA-%D0%BC%D0%BE%D0%B6%D0%BD%D0%BE-%D0%BD%D0%B5%D0%B4%D0%BE%D1%80%D0%BE%D0%B3%D0%BE-%D0%BF%D1%80%D0%B8%D0%BE%D0%B1%D1%80%D0%B5%D1%81%D1%82%D0%B8-%D0%B0%D1%82%D1%82%D0%B5%D1%81%D1%82%D0%B0%D1%82-%D0%B2-%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D0%BD%D0%B5%D1%82-%D0%BC%D0%B0%D0%B3%D0%B0%D0%B7%D0%B8%D0%BD%D0%B5

  31. THC gummies说道:

    There is definately a lot to know about this subject. I like all the points you have made.

  32. Jamesjer说道:

    paxlovid buy: paxlovid for sale – paxlovid cost without insurance

  33. Flum vape说道:

    Having read this I thought it was really enlightening. I appreciate you taking the time and energy to put this article together. I once again find myself personally spending way too much time both reading and posting comments. But so what, it was still worth it.

  34. Cazrxde说道:

    Здравствуйте!
    Мы можем предложить документы техникумов, расположенных в любом регионе Российской Федерации. Вы имеете возможность приобрести качественно сделанный диплом за любой год, включая документы старого образца СССР. Дипломы и аттестаты делаются на бумаге высшего качества. Это дает возможность делать государственные дипломы, не отличимые от оригиналов. Они заверяются необходимыми печатями и штампами.
    facesocial.demo3.dedicatedhost247.com/read-blog/14994

  35. ThomasInace说道:

    http://clomiddelivery.pro/# can you buy generic clomid without prescription

  36. Sazrfxy说道:

    Добрый день!
    Как приобрести аттестат о среднем образовании в Москве и других городах
    pro-novostroyki.ru/index.php?showtopic=20846
    Рады оказаться полезными!

  37. Xazruom说道:

    Здравствуйте!
    Как получить диплом техникума с упрощенным обучением в Москве официально
    landik-diploms-srednee.ru/diplom-s-reestromkupit-kupit  

  38. Jamesjer说道:

    ciprofloxacin over the counter: buy cipro cheap – where to buy cipro online

  39. Mazrbte说道:

    Привет!
    Купить документ о получении высшего образования вы сможете в нашем сервисе. Мы оказываем услуги по изготовлению и продаже документов об окончании любых ВУЗов Российской Федерации. Вы получите необходимый диплом по любой специальности, включая документы Советского Союза. Гарантируем, что при проверке документа работодателем, каких-либо подозрений не возникнет.
    Мы изготавливаем дипломы любой профессии по приятным тарифам. Цена зависит от выбранной специальности, года выпуска и образовательного учреждения. Стараемся поддерживать для заказчиков адекватную политику цен. Важно, чтобы дипломы были доступны для большинства наших граждан.
    baetezhylefy.timeforchangecounselling.com/kak-mozno-budet-nedorogo-priobresti-diplom-v-internet-magazine
    Поможем вам всегда!

  40. CalvinGef说道:

    Juventus Football Club https://italy.juventus-ar.com is one of the most successful and decorated clubs in the history of Italian and world football.

  41. DonaldHew说道:

    Chelsea https://england.chelsea-ar.com is one of the most successful English football clubs of our time.

  42. Williamacrog说道:

    The history of one of France’s https://france.paris-saint-germain-ar.com most famous football clubs, Paris Saint-Germain, began in 1970, when capitalist businessmen Henri Delaunay and Jean-Auguste Delbave founded the club in the Paris Saint-Germain-en-Laye area.

  43. ThomasInace说道:

    https://doxycyclinedelivery.pro/# doxycycline pills over the counter

  44. DonaldCon说道:

    Zinedine Zidane https://real-madrid.zinedine-zidane-ar.com the legendary French footballer, entered the annals of football history as a player and coach.

发表回复

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