Last active
December 16, 2015 11:59
-
-
Save sunkay/5431089 to your computer and use it in GitHub Desktop.
nginx commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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