[Mac] Installing Nginx with Homebrew

Tadashi Shigeoka ·  Sun, July 14, 2013

I installed Nginx on Mac using Homebrew.

Nginx
% brew install nginx
% nginx -v
nginx version: nginx/1.4.1

Configure Nginx to start automatically.

% ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
% launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist

If you want to start Nginx manually, run the following command.

% nginx

Access http://127.0.0.1:8080/

welcome-to-nginx

From here, configure various settings according to your use case.

That’s all from the Gemba.