Start Nginx using Task Scheduler

Follow the steps below to start Nginx using Task Scheduler.

Steps 1: Create a startn.bat file with the following content in the folder where Nginx is extracted.

start nginx.exe

Steps 2: Open Task Scheduler and click Create Task.

Screenshot 1 — Start Nginx using Task Scheduler

Steps 3: Enter a name for the task and select the Run whether the user is logged on or not.

Screenshot 2 — Start Nginx using Task Scheduler

Steps 4: Go to the Action tab click the New button.

Screenshot 3 — Start Nginx using Task Scheduler

Steps 5: Click the Browse button to select the startn.bat file. Enter the values in the Add arguments and start in fields, then click OK.

Add arguments: startn.bat

start in: <Nginx_extracted_directory>

Screenshot 4 — Start Nginx using Task Scheduler

Steps 6: Finally, click OK, enter the user credential and save the task.

To stop Nginx, navigate to the directory where Nginx is extracted and execute the following command.

nginx -s stop

Monitoring with Applicare

Was this article helpful?

Votes and follows are kept by Zendesk, so they need a Help Center account. These buttons open this article there.

Opens Zendesk · needs internet and sign-in

Still stuck? Contact support