How to stop nginx on Mac OS 10.6.3
Posted
by Alex Kaushovik
on Server Fault
See other posts from Server Fault
or by Alex Kaushovik
Published on 2010-05-14T17:57:33Z
Indexed on
2010/05/14
18:04 UTC
Read the original article
Hit count: 279
I've installed nginx server on my Mac from MacPorts: sudo port install nginx. Then I followed the recommendation from the port installation console and created the launchd startup item for nginx, then started the server. It works fine (after I renamed nginx.conf.example to nginx.conf and renamed mime.types.example to mime.types), but I couldn't stop it... I tried sudo nginx -s stop - this doesn't stop the server, I can still see "Welcome to nginx!" page in my browser on http://localhost, also I still see master and worker processes of nginx with ps -e | grep nginx.
What is the best way to start/stop nginx on Mac?
BTW, I've added "daemon off;" into nginx.conf - as recommended by various resources.
Thank you.
© Server Fault or respective owner