Skip to content

Instantly share code, notes, and snippets.

@hello-alf
Last active August 27, 2020 14:12
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 hello-alf/1244235416359e2eb5d6d22a6e03bc0e to your computer and use it in GitHub Desktop.
Save hello-alf/1244235416359e2eb5d6d22a6e03bc0e to your computer and use it in GitHub Desktop.
# Instalador de brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
brew update
brew install nginx
# Comando para iniciar el server
launchctl load /usr/local/cellar/nginx/1.19.2/homebrew.mxcl.nginx.plist
# Comando para detener servicio+
launchctl unload /usr/local/cellar/nginx/1.19.2/homebrew.mxcl.nginx.plist
Important locations:
Add configs in -> /usr/local/etc/nginx/servers/
Default config -> /usr/local/etc/nginx/nginx.conf
Logs will be in -> /usr/local/var/log/nginx/
Default webroot is -> /usr/local/var/www/
Default listen address -> http://localhost:8080
After all steps set nginx as service
brew services restart nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment