Last active
August 27, 2020 14:12
-
-
Save hello-alf/1244235416359e2eb5d6d22a6e03bc0e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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