Skip to content

Instantly share code, notes, and snippets.

@aymanosman
Created August 1, 2014 12:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save aymanosman/3e104a16fb6f121a952f to your computer and use it in GitHub Desktop.
Save aymanosman/3e104a16fb6f121a952f to your computer and use it in GitHub Desktop.
Nginx: Start nginx on boot on Mac
# brew install nginx
sudo ln -s /usr/local/opt/nginx/homebrew.mxcl.nginx.plist /Library/LaunchDaemons/
sudo chown root:wheel /usr/local/opt/nginx/homebrew.mxcl.nginx.plist
sudo launchctl load /Library/LaunchDaemons/homebrew.mxcl.nginx.plist
# Why do you need sudo?
# If you want nginx to be able to bind to port 80, it will need superuser privileges
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment