Skip to content

Instantly share code, notes, and snippets.

@sunkay
Last active December 16, 2015 11:59
Show Gist options
  • Save sunkay/5431089 to your computer and use it in GitHub Desktop.
Save sunkay/5431089 to your computer and use it in GitHub Desktop.
nginx commands
Mac:cotd$ sudo nginx
Mac:cotd$ ps -ef|grep nginx
0 22354 1 0 5:10PM ?? 0:00.00 nginx: master process nginx
-2 22355 22354 0 5:10PM ?? 0:00.00 nginx: worker process
502 22357 19529 0 5:10PM ttys000 0:00.00 grep nginx
STOPPING NGINX
Mac:cotd$ sudo nginx -s stop
Mac:cotd$ ps -ef|grep nginx
502 22425 19529 0 5:12PM ttys000 0:00.00 grep nginx
RELOADING NGINX
Mac:cotd$ sudo nginx -s reload
Configuration in my mac was located at /opt/local/etc/nginx/nginx.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment