How to correctly restart nginx?
ficovh at gmail.com
Wed Feb 18 09:25:42 MSK 2009
The old school command.
# kill -HUP `cat /var/run/nginx.pid`
On Wed, Feb 18, 2009 at 12:52 AM, Kevin Worthington
<kworthington at gmail.com> wrote:
> Have you tried (as root):
> service nginx restart
> service nginx stop && service nginx start
> Kevin Worthington
> On Feb 17, 2009, at 7:32 PM, Max <maxbear at gmail.com> wrote:
>> 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
>> 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
Francisco Valladolid H.
-- http://bsdguy.net - Jesus Christ follower.
More information about the nginx