Vishal Gaikwad
Vishal Gaikwad

Reputation: 21

How to reload nginx in windows

I have installed nginx as a load balancer on my Windows machine using nssm. Now, I want to reload the configuration file of nginx for that I used nginx -s reload command but it is not working. It gives errors as access denied and I don't want to restart nginx. Is there any way to reload the nginx configuration file in windows.

Upvotes: 1

Views: 5070

Answers (2)

Kodak
Kodak

Reputation: 1829

After https://forum.nginx.org/read.php?11,238513:

run nginx service as an admin and issue reload command from admin prompt as well

dirty way but working one

Upvotes: 0

Abhishek Anand
Abhishek Anand

Reputation: 7

Try following:

nssm restart nginx

Upvotes: -1

Related Questions