Created
June 22, 2019 19:52
-
-
Save abdennour/4a087a582abfa904f2f0160e8dcc7342 to your computer and use it in GitHub Desktop.
Install nginx on MacOs
This file contains 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
brew install 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 | |
# ==> Summary | |
# 🍺 /usr/local/Cellar/nginx/1.17.0: 25 files, 2MB |
This file contains 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
brew services start nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment