mac 10.11.6 安装 nginx
xxMacBook-Pro:redis-bin xx$ brew install nginx
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core, josegonzalez/php).
==> New Formulae
ddgr libidn2
google-authenticator-libpam mongodb@3.4
igv node@8
josegonzalez/php/phan@0.10
==> Updated Formulae
libtiff ✔ josegonzalez/php/php71-redis
abcmidi josegonzalez/php/php72-redis
ace josegonzalez/php/phpunit
ack josegonzalez/php/psysh
acmetool jruby
advancemame just
ansible-lint kibana
apm-server kibana@5.6
armadillo knot-resolver
artifactory kompose
assimp kontena
aws-sdk-cpp kube-aws
bartycrouch kubeless
bedtools kubernetes-cli
bfg latexila
binaryen lgogdownloader
bitrise libassuan
bmake libcdio
carthage liblinear
ceres-solver libmicrohttpd
chromedriver libqalculate
clhep libtensorflow
cling logstash
clojure logstash@5.6
coffeescript meson
corebird metricbeat
dcm2niix minio-mc
dialog mockserver
docfx mongodb
dpkg mono
elasticsearch mpv
elasticsearch@5.6 mrboom
enchant mujs
fabio node
fd node-build
ffmpeg node@4
fibjs node@6
filebeat notmuch
flow nvm
fn octave
folly ohcount
fuse-emulator oniguruma
game-music-emu optipng
gearman osquery
gedit packer
gitg packetbeat
gjstest peco
global pegtl
glog percona-server@5.5
gnome-builder percona-server@5.6
gnome-recipes pipenv
gopass planck
gperftools presto
gradle pulledpork
graphicsmagick pyenv
gsoap pygobject
gspell python-markdown
gst-editing-services qbs
gst-libav qt
gst-plugins-bad reminiscence
gst-plugins-base rustup-init
gst-plugins-good securefs
gst-plugins-ugly sfk
gst-python shellcheck
gst-rtsp-server shpotify
gst-validate suite-sparse
gstreamer sundials
gtk-doc swift
gtksourceview3 swiftformat
gtkspell3 sysbench
heartbeat tarantool
heimdal telegraf
heroku thrift
html-xml-utils tinyxml2
jboss-forge tmuxinator-completion
jenkins traefik
jhipster treefrog
joplin vala
josegonzalez/php/phan vips
josegonzalez/php/php-cs-fixer wireguard-tools
josegonzalez/php/php54-redis wtf
josegonzalez/php/php55-redis xtensor
josegonzalez/php/php56-redis yle-dl
josegonzalez/php/php70-redis youtube-dl
==> Deleted Formulae
josegonzalez/php/phan@0.9
==> Installing dependencies for nginx: pcre
==> Installing nginx dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.41.el_capitan.bottle
######################################################################## 100.0%
==> Pouring pcre-8.41.el_capitan.bottle.tar.gz
�� /usr/local/Cellar/pcre/8.41: 204 files, 5.4MB
==> Installing nginx
==> Downloading https://homebrew.bintray.com/bottles/nginx-1.12.2_1.el_capitan.b
######################################################################## 100.0%
==> Pouring nginx-1.12.2_1.el_capitan.bottle.tar.gz
==> Caveats
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.12.2_1: 23 files, 1MB
-Pro:redis-bin xx$