How to register nginx service under windows

  
 

Assuming nginx is installed under c:\ ginx\\: 1. Download the Microsoft service registration tool srvany.exe, instsrv.exe, srvany-instsrv to c:\ ginx\\ directory 2. Install Nginx service, command line Switch to c:\ ginx\\ and execute the following command instsrv NGINX c:\ ginx\\srvany.exe3. Under c:\ ginx\\, create a new nginx.reg file and type in the following: Windows
Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\NGINX\\Parameters]“Application”=”C:\\\ ginx\\\ ginx.exe”“AppParameters”=””“AppDirectory”=”C :\\\ ginx\\\\”5. Let the service be associated with the program, the command line executes regedit /s nginx.reg6.Start the NGINX service from the service

Copyright © Windows knowledge All Rights Reserved