Thanks a lot for your all you guys. I will try to see if I can restart it correctly.<br><br>Max<br><br><div class="gmail_quote">On Wed, Feb 18, 2009 at 2:25 PM, Francisco Valladolid <span dir="ltr"><<a href="mailto:ficovh@gmail.com">ficovh@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;">The old school command.<br>
<br>
# kill -HUP `cat /var/run/nginx.pid`<br>
<br>
Regards.<br>
<div><div></div><div class="Wj3C7c"><br>
On Wed, Feb 18, 2009 at 12:52 AM, Kevin Worthington<br>
<<a href="mailto:kworthington@gmail.com">kworthington@gmail.com</a>> wrote:<br>
> Have you tried (as root):<br>
> service nginx restart<br>
> -or-<br>
> service nginx stop && service nginx start<br>
><br>
> --<br>
> Kevin Worthington<br>
><br>
> On Feb 17, 2009, at 7:32 PM, Max <<a href="mailto:maxbear@gmail.com">maxbear@gmail.com</a>> wrote:<br>
><br>
>> Hello,<br>
>><br>
>> I got some problem to restart nginx. I am running RHEL5 and using 0.6.33<br>
>> rpm version.I changed some rewrite rules in nginx.conf and want to restart<br>
>> 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<br>
>> working anymore. It just redirect me to a 50x error page. I need to reboot<br>
>> the server to get the sites running again.<br>
>><br>
>> Could anyone tell me what's the correct way to restart nginx? Thanks a<br>
>> lot.<br>
>><br>
>> Max<br>
><br>
><br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Francisco Valladolid H.<br>
-- <a href="http://bsdguy.net" target="_blank">http://bsdguy.net</a> - Jesus Christ follower.<br>
<br>
</font></blockquote></div><br>