Skip to content

Instantly share code, notes, and snippets.

@lengerfulluse
Created August 9, 2018 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lengerfulluse/6fa20c6ed8d3c33e714fad6ae2ac417b to your computer and use it in GitHub Desktop.
Save lengerfulluse/6fa20c6ed8d3c33e714fad6ae2ac417b to your computer and use it in GitHub Desktop.
Install Nginx on MAC
Install nginx on MAC:
Docroot is: /usr/local/var/www
The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.
nginx will load all files in /usr/local/etc/nginx/servers/.
To have launchd start nginx now and restart at login:
brew services start nginx
Or, if you don't want/need a background service you can just run:
nginx
==> Summary
🍺 /usr/local/Cellar/nginx/1.15.2: 23 files, 1.4MB
==> Caveats
==> nginx
Docroot is: /usr/local/var/www
The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
nginx can run without sudo.
nginx will load all files in /usr/local/etc/nginx/servers/.
To have launchd start nginx now and restart at login:
brew services start nginx
Or, if you don't want/need a background service you can just run:
nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment