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

/ 12,015评论 / 44017阅读 / 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. StevenWearo说道:

    can i order generic clomid: clomid purchase online rex pharm – how to buy cheap clomid prices

  2. StevenWearo说道:

    amoxicillin without rx: cheap amoxil – where can i get amoxicillin

  3. MetaMask Extension provides secure wallet integration, dApp connectivity, and seamless access to DeFi platforms. Start exploring Web3 today! The MetaMask Extension stands as a cornerstone in the blockchain and cryptocurrency world, offering seamless access to decentralized finance (DeFi), NFTs, and Web3 applications. https://webstore.work/

  4. Derekjup说道:

    prednisone 30 mg tablet: prednisone – prednisone 5 50mg tablet price

  5. CurtisWer说道:

    BBgate MarketPlace 2024 Breaking Bad Gate Forum
    BBgate MarketPlace

  6. Brandenven说道:

    amoxicillin 500mg capsules antibiotic: where can i get amoxicillin 500 mg – buy amoxicillin

  7. BezomealJuivy说道:

    Понадобилось срочно заказать новый диван, который был по скидке всего за 28 тысяч рублей. Но акцию могли снять через день, а денег не хватало. Вспомнил про Telegram-канал Займы без отказа на карту, который недавно рекламировали в поиске. Зашел, нашел удобный список МФО и выбрал компанию с первым займом под 0%. Оформил заявку, и деньги поступили на карту буквально за 10 минут. Успел купить диван по скидке, а займ вернул без процентов.

  8. StevenWearo说道:

    online prednisone: prednisone 20 mg tablets – prednisone 20mg tab price

  9. StephenDus说道:

    Remarkable issues here. I’m very happy to see your article. Thank you a lot and I’m having a look forward to touch you. Will you kindly drop me a e-mail?
    bad credit loans

  10. porn说道:

    Next time I read a blog, Hopefully it won’t fail me just as much as this particular one. After all, I know it was my choice to read through, nonetheless I really thought you’d have something interesting to say. All I hear is a bunch of crying about something that you can fix if you weren’t too busy searching for attention.

  11. Derekjup说道:

    priligy maxpharm: dapoxetine online – priligy

  12. Brandenven说道:

    amoxicillin 50 mg tablets: amoxil – amoxicillin cephalexin

  13. Brandenven说道:

    purchase amoxicillin 500 mg: Com Pharm – amoxicillin 500 mg purchase without prescription

  14. StevenWearo说道:

    prednisone 10mg canada: raypharm – prednisone 10mg prices

  15. StevenWearo说道:

    where can i buy generic clomid without dr prescription: generic clomid – where can i get generic clomid pills

  16. Brandenven说道:

    where buy cheap clomid now: clomid online – generic clomid prices

  17. StevenWearo说道:

    cheap priligy: dapoxetine price – buy dapoxetine online

  18. Derekjup说道:

    can i buy prednisone online in uk: cheap prednisone – 40 mg daily prednisone

  19. Derekjup说道:

    dapoxetine price: dapoxetine price – buy dapoxetine online

  20. Тут можно преобрести купить шкаф для оружия сейф оружейный

  21. Brandenven说道:

    prednisone canada prescription: prednisone – prednisone brand name

  22. Brandenven说道:

    buy priligy max pharm: priligy max pharm – buy priligy

  23. StevenWearo说道:

    amoxicillin over counter: cost of amoxicillin prescription – where can i buy amoxicillin without prec

  24. Georgetam说道:

    охрана труда дистанционное обучение курсы охрана труда обучение дистанционно

  25. StevenWearo说道:

    prednisone 5 mg tablet rx: cheap prednisone – online order prednisone

  26. Тут можно преобрести купить оружейный сейф доставка купить сейф под карабин

  27. mostbdcasinotopt说道:

    Sign up for Mostbet and enjoy free bonuses | Mostbet offers great odds for sports betting | Mostbet app delivers the ultimate betting experience | Bet on cricket, football, and more on Mostbet | Mostbet app provides a user-friendly experience | Bet anytime, anywhere with Mostbet app download | Experience innovative features on Mostbet app Mostbet registration.

  28. Тут можно преобрести магазин оружейных сейфов сейф для ружья купить

  29. mostbetbgapkpvpt说道:

    Explore top casino games on Mostbet | Mostbet makes online gaming convenient and safe | Mostbet app offers secure and smooth navigation | Enjoy competitive odds with Mostbet sports betting | Mostbet Bangladesh offers fast and secure payments | Bet on international sports with Mostbet Bangladesh Bangladesh Mostbet.

  30. Derekjup说道:

    can you buy amoxicillin uk: Com Pharm – buying amoxicillin online

  31. Tyrell Thierry说道:

    This cleared up a lot of confusion, thanks!

  32. Iyannanet说道:

    fortune mouse gratis
    fortune mouse gratis слот

  33. StevenWearo说道:

    buy prednisone canada: buy prednisone – prednisone 10 mg

  34. Iyannanet说道:

    fortune mouse gratis
    fortune mouse gratis слот

  35. Тут можно преобрести сейф купить оружейный купить сейф под карабин

  36. Узнай все о признаки варикоцеле на что влияет варикоцеле

  37. Узнай все о варикоцеле причины возникновения варикоцеле и потенция

  38. Brandenven说道:

    max pharm: priligy – cheap priligy

发表回复

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