Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I just installed Nginx on Mac OS X (thanks http://www.kevinworthington.com/nginx-mac-os-snow-leopard-2-minutes/), but how do I restart Nginx on Mac OS X?


share|improve this question
If you just want to restart because of an updated config then just do sudo nginx -s reload. –  hobbes3 Mar 16 '13 at 21:26
add comment

2 Answers

up vote 13 down vote accepted
sudo nginx -s stop && sudo nginx
share|improve this answer
Quick question what does the && means? I guess it's something different then using ;? –  hobbes3 Mar 15 '13 at 20:03
@hobbes3 stackoverflow.com/questions/6152659/… –  cbednarski Mar 16 '13 at 2:12
add comment
sudo pkill nginx   
sudo nginx

If the pkill can't be found, then install it using brew install proctools first.

share|improve this answer
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.