How to correctly restart nginx?
maxbear at gmail.com
Wed Feb 18 10:29:42 MSK 2009
Thanks a lot for your all you guys. I will try to see if I can restart it
On Wed, Feb 18, 2009 at 2:25 PM, Francisco Valladolid <ficovh at gmail.com>wrote:
> 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
> > -or-
> > service nginx stop && service nginx start
> > --
> > Kevin Worthington
> > On Feb 17, 2009, at 7:32 PM, Max <maxbear at gmail.com> 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
> >> 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
> >> the server to get the sites running again.
> >> Could anyone tell me what's the correct way to restart nginx? Thanks a
> >> lot.
> >> Max
> Francisco Valladolid H.
> -- http://bsdguy.net - Jesus Christ follower.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx