Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Nginx
brew install nginx
Validation results
brew services start nginx
Browser to access the native port 8080 (default):
View version
nginx -v
Stop Nginx
sudo nginx -s stop
Start Nginx
sudo nginx
Reload Nginx
sudo nginx -s reload
Nginx installation path
/usr/local/opt/nginx
Profile Path
/usr/local/etc/nginx