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">&lt;<a href="mailto:ficovh@gmail.com">ficovh@gmail.com</a>&gt;</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>
&lt;<a href="mailto:kworthington@gmail.com">kworthington@gmail.com</a>&gt; wrote:<br>
&gt; Have you tried (as root):<br>
&gt; service nginx restart<br>
&gt; -or-<br>
&gt; service nginx stop &amp;&amp; service nginx start<br>
&gt;<br>
&gt; --<br>
&gt; Kevin Worthington<br>
&gt;<br>
&gt; On Feb 17, 2009, at 7:32 PM, Max &lt;<a href="mailto:maxbear@gmail.com">maxbear@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I got some problem to restart nginx. I am running RHEL5 and using 0.6.33<br>
&gt;&gt; rpm version.I changed some rewrite rules in nginx.conf and want to restart<br>
&gt;&gt; it.<br>
&gt;&gt;<br>
&gt;&gt; When I tried :<br>
&gt;&gt;<br>
&gt;&gt; /etc/init.d/nginx restart<br>
&gt;&gt;<br>
&gt;&gt; It will only stop nginx. Then I type:<br>
&gt;&gt;<br>
&gt;&gt; /etc/init.d/nginx status<br>
&gt;&gt;<br>
&gt;&gt; I still see there are some processes running.<br>
&gt;&gt;<br>
&gt;&gt; So, I kill all those processes and start nginx again. But my site is not<br>
&gt;&gt; working anymore. It just redirect me to a 50x error page. I need to reboot<br>
&gt;&gt; the server to get the sites running again.<br>
&gt;&gt;<br>
&gt;&gt; Could anyone tell me what&#39;s the correct way to restart nginx? Thanks a<br>
&gt;&gt; lot.<br>
&gt;&gt;<br>
&gt;&gt; Max<br>
&gt;<br>
&gt;<br>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Francisco Valladolid H.<br>
&nbsp;-- <a href="http://bsdguy.net" target="_blank">http://bsdguy.net</a> - Jesus Christ follower.<br>
<br>
</font></blockquote></div><br>