■ If brew is not installed in your mac, need to execute the following command.
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
■ how to install nginx on mac
$ brew install nginx
■ Start
$ sudo nginx
■ Stop
$ sudo -s nginx stop
■ Check
http://localhost:8080
■ Just test the configuration file as grammar
$ sudo nginx -t
■ To load config changes, type:
$ sudo nginx -s reload
No comments:
Post a Comment