Tell me more ×
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?

Thanks!

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

2 Answers

up vote 8 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 at 20:03
1  
sudo pkill nginx   
sudo nginx

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

share|improve this answer

Your Answer

 
discard

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.