You should not to restart nginx after applying new configuration.<br><br>ps aux | egrep '(PID|nginx)'<br><br>and kill the PID<br><br>kill -HUP PID<br><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 12:32 PM, Max <span dir="ltr"><<a href="mailto:maxbear@gmail.com">maxbear@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br>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.<br>
<br>When I tried :<br><br>/etc/init.d/nginx restart<br>
<br>It will only stop nginx. Then I type:<br><br>/etc/init.d/nginx status<br><br>I still see there are some processes running.<br><br>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.<br>
<br>Could anyone tell me what's the correct way to restart nginx? Thanks a lot.<br><font color="#888888"><br>Max<br>
</font></blockquote></div><br>