/dev/null

Start nginx on macOS boot with launchctl

Start nginx on macOS boot with launchctl

Copy your plist file into /Library/LaunchDaemons, not in ~/Library/LaunchAgents, as indicated in the Homebrew instructions.

sudo cp /usr/local/opt/nginx/*.plist /Library/LaunchDaemons
sudo launchctl load -w /Library/LaunchDaemons/homebrew.mxcl.nginx.plist

Click on this link to read the detailed solution.

First published on September 28, 2016