1 admin@admindeMac:local]$ brew install nginx
2 ==> Installing dependencies for nginx: pcre, openssl
3 ==> Installing nginx dependency: pcre
4 ==> Downloading https://homebrew.bintray.com/bottles/pcre-8.38.el_capitan.bottle.tar.gz
5 ######################################################################## 100.0%
6 ==> Pouring pcre-8.38.el_capitan.bottle.tar.gz
7 🍺 /usr/local/Cellar/pcre/8.38: 203 files, 5.4M
8 ==> Installing nginx dependency: openssl
9 ==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2g.el_capitan.bottle.tar.gz
10 ######################################################################## 100.0%
11 ==> Pouring openssl-1.0.2g.el_capitan.bottle.tar.gz
12 ==> Caveats
13 A CA file has been bootstrapped using certificates from the system
14 keychain. To add additional certificates, place .pem files in
15 /usr/local/etc/openssl/certs
16
17 and run
18 /usr/local/opt/openssl/bin/c_rehash
19
20 This formula is keg-only, which means it was not symlinked into /usr/local.
21
22 Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries
23
24 Generally there are no consequences of this for you. If you build your
25 own software and it requires this formula, you'll need to add to your
26 build variables:
27
28 LDFLAGS: -L/usr/local/opt/openssl/lib
29 CPPFLAGS: -I/usr/local/opt/openssl/include
30
31 ==> Summary
32 🍺 /usr/local/Cellar/openssl/1.0.2g: 1,678 files, 12.0M
33 ==> Installing nginx
34 ==> Downloading https://homebrew.bintray.com/bottles/nginx-1.8.1.el_capitan.bottle.2.tar.gz
35 ######################################################################## 100.0%
36 ==> Pouring nginx-1.8.1.el_capitan.bottle.2.tar.gz
37 ==> Caveats
38 Docroot is: /usr/local/var/www
39
40 The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that
41 nginx can run without sudo.
42
43 nginx will load all files in /usr/local/etc/nginx/servers/.
44
45 To have launchd start nginx at login:
46 ln -sfv /usr/local/opt/nginx/*.plist ~/Library/LaunchAgents
47 Then to load nginx now:
48 launchctl load ~/Library/LaunchAgents/homebrew.mxcl.nginx.plist
49 Or, if you don't want/need launchctl, you can just run:
50 nginx
51 ==> Summary
52 🍺 /usr/local/Cellar/nginx/1.8.1: 7 files, 938.9K