Follow below steps to start nginx with task scheduler
Steps 1: Create a startn.bat file with the below content in the folder extracted by Nginx.
start nginx.exe
Steps 2: Open task scheduler and click create task.
Steps 3: Please fill name and Enable Run whether user is logged on or not option.
Steps 4: Select action tab click New button.
Steps 5: Click the Browse button and select the startn.bat file. Below values add in Add arguments and start in value box then click ok button.
Add arguments: startn.bat
start in: <Nginx_extracted_directory>
Steps 6: Finally click on the ok button and give the user credential and save.
Note:
To stop the Nginx please go to nginx extracted directory then execute below command.
nginx -s stop
Comments
0 comments
Article is closed for comments.