This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12008|Reply: 2

Deploy applications as Windows services through NSSM

[Copy link]
Posted on 2/1/2021 2:29:08 PM | | | |
NSSM is a service encapsulator that encapsulates ordinary exes into services and makes them run like Windows services. Microsoft's own SRVANY tool is the same type, but NSSM is simpler and more powerful. Its features are as follows:

  • Support normal exe programs (console programs or Windows programs with interfaces are acceptable)
  • Simple installation and easy modification
  • Can redirect output (and supports rotation)
  • It can automatically guard the encapsulated service and automatically restart the program after it hangs up
  • Environment variables can be customized


Download Address:

The hyperlink login is visible.

Command:The hyperlink login is visible.

Install kibana as a Windows service

After unzipping, run the following command in the nssm directory:

Then, select Kibana's BAT startup script and click the Install Service button, as shown in the figure below:




Then, you can see the service named "kibana7" in Windows Services, right-click to start it.

nssm-2.24.zip (343.55 KB, Number of downloads: 15, 售价: 2 粒MB)

The configuration is saved to the registry:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\kibana7\Parameters

The Windows service starts NSSM, which then executes the appropriate application.






Previous:jquery ajax to get the response header
Next:Logging System (II).NET/C# uses NLog to push logs to ELK
 Landlord| Posted on 3/7/2021 5:33:33 PM |
The hyperlink login is visible.

Add services directly from the command line

 Landlord| Posted on 5/13/2021 3:07:36 PM |
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com