Last active
June 21, 2018 11:09
-
-
Save anyboo/892c8e427972efc6387113cf31fb92b2 to your computer and use it in GitHub Desktop.
Homebrew manual
$ brew services start nginx
==> Tapping homebrew/services
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services'...
remote: Counting objects: 14, done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 14 (delta 0), reused 10 (delta 0), pack-reused 0
Unpacking objects: 100% (14/14), done.
Tapped 0 formulae (43 files, 55.7KB)
==> Successfully started nginx
(label: homebrew.mxcl.nginx)
How do I tell Homebrew to stop running brew update every time I want to install something?
HOMEBREW_NO_AUTO_UPDATE=1
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Or, if you don't want/need a background service you can just run: