thohoh
3/8/2018 - 8:05 PM

MAC OS setup

# Article https://coderwall.com/p/dgwwuq/installing-nginx-in-mac-os-x-maverick-with-homebrew
# http://brianflove.com/2015/04/04/learning-nginx-on-os-x/

brew install nginx

# run to test, go to localhost:8080
sudo nginx

# stop
sudo nginx -s stop/start/reload/restart

# open config and change to port 80
vi /usr/local/etc/nginx/nginx.conf

# run
sudo nginx