How to correctly restart nginx?

Joe frumentius at
Wed Feb 18 08:46:10 MSK 2009

You should not to restart nginx after applying new configuration.

ps aux | egrep '(PID|nginx)'

and kill the PID

kill -HUP PID

On Wed, Feb 18, 2009 at 12:32 PM, Max <maxbear at> wrote:

> Hello,
> I got some problem to restart nginx. I am running RHEL5 and using 0.6.33
> rpm version.I changed some rewrite rules in nginx.conf and want to restart
> it.
> When I tried :
> /etc/init.d/nginx restart
> It will only stop nginx. Then I type:
> /etc/init.d/nginx status
> I still see there are some processes running.
> So, I kill all those processes and start nginx again. But my site is not
> working anymore. It just redirect me to a 50x error page. I need to reboot
> the server to get the sites running again.
> Could anyone tell me what's the correct way to restart nginx? Thanks a lot.
> Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list