Stopping Nginx

I’m trying to get rails running with Nginx. I have Nginx installed using
Macports and I can get it running. But I can’t stop it. This will not
work:

alias nginx-stop=“sudo launchctl unload
/Library/LaunchDaemons/org.macports.nginx.plist”

I get “launchctl: Error unloading: nginx”.

Using “killall nginx” didn’t stop it either, before. Now it suddenly
does. Is this a good way to stop it?

Not sure if this will help as I am running nginx in Ubuntu, but it took
me a
bit to find this. These are the commands that work for me:

Stop nginx: sudo /opt/nginx/sbin/nginx -s stop
Start nginx: sudo /opt/nginx/sbin/nginx

2010/7/16 PÃ¥l Bergström [email protected]

David K. wrote:

Not sure if this will help as I am running nginx in Ubuntu, but it took

I run it on my mac but I plan to install it on a VPS with Debian 5 so
it’s good to know. Did you install it using Passenger or apt?

Ok, first, yes, I am using Passenger/Nginx combination. Maybe this will
help

If you are not planning on using SSL with it then you can

gem install passenger
passenger-install-nginx-module

And this worked great until I tried to get ssl up. As I found out the
hard
way, if you want ssl you have to compile it from source.

2010/7/16 PÃ¥l Bergström [email protected]

Hello together,

in CentOs i have to send a “kill -9 2134”. The last number is nginx’s
process id.

Maybe that helps someone.

Dan Lenz wrote:

Hello together,

in CentOs i have to send a “kill -9 2134”. The last number is nginx’s
process id.

Maybe that helps someone.

also tried in a ubuntu vm a second ago. also works this way here… so
it should also work in debian.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs