其实我主要是记录默认的几个目录的
brew install nginx
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/cask and caskroom/cask).
==> New Formulae
buildkit gitleaks llvm@7 operator-sdk protobuf@3.6 s2geometry
ffsend go@1.11 mdbook proper pyinstaller solr@7.7
==> Updated Formulae
boost ✔ convox gnupg libgaiagraphics odpi sceptre
freetype ✔ coturn gnuradio libgeotiff opa sdl2
node ✔ cppad go-statik libgpg-error opencoarrays securefs
openssl ✔ cpprestsdk gocryptfs libgweather openfortiV** servus
python ✔ csvkit googler liblcf openimageio sfcgal
qt ✔ cucumber-cpp goreleaser liblwgeom openrct2 shapelib
source-highlight ✔ curl gosu libphonenumber openvdb ship
sqlite ✔ curl-openssl gr-osmosdr libpointing orc-tools simple-tiles
abcm2ps dateutils gradle libpulsar ori sip
ack dav1d grafana libqalculate osc skaffold
acpica dbhash graph-tool librasterlite osm2pgsql slackcat
adwaita-icon-theme derby gssh libsoundio osquery spatialite-gui
aide dlib gtkmm3 libspatialite osrm-backend spatialite-tools
allegro dnscrypt-proxy gtksourceview3 libssh2 oxipng spigot
amazon-ecs-cli doctl gtksourceview4 libswiften pandoc-citeproc spirv-cross
ammonite-repl doitlive hadolint libtermkey parallel sqlcipher
anycable-go dovecot hapi-fhir-cli libtins parallelstl sqldiff
apachetop dpkg helmfile libtommath pcl sqlite-analyzer
arangodb dropbear help2man libtorrent-rasterbar pdal stellar-core
armadillo dssim hg-fast-export libuv pdftoedn step
aubio duply homeassistant-cli libzip pgloader supersonic
auditbeat dynare homebank lldpd pgrouting swagger-codegen@2
autossh easyengine hub llnode php-code-sniffer swi-prolog
aws-sdk-cpp easyrpg-player i2pd llvm php@7.1 swiftformat
awscli efl imagemagick logstash php@7.2 sxiv
azure-cli eiffelstudio influxdb lorem phpunit tbb
azure-storage-cpp ejabberd ipython lynis picard-tools telegraf
bartycrouch elasticsearch istioctl mapnik pius teleport
bash emscripten jasper mapserver plantuml termtosvg
bedtools epic5 jenkins mariadb podofo terragrunt
berkeley-db erlang jenkins-lts maxwell points2grid thors-serializer
bettercap eslint jid menhir polyml tokei
binaryen exomizer jpeg-turbo mercurial ponyc tomcat
bind exploitdb json-fortran mesa postgis tomcat@7
bitcoin ffmpeg juju metaproxy presto topgrade
bitwarden-cli flatcc julius metricbeat proj ucloud
boost-bcp flow kallisto mgba protobuf uhd
boost-build fn khal micropython prototool upscaledb
boost-mpi folly kibana mingw-w64 proxychains-ng v8
boost-python fontforge ktmpl minio pspg vala
boost-python3 fonttools kubecfg minio-mc ptex vifm
bowtie2 fortio kubeprod mitie pulledpork vim
btfs frugal kubernetes-cli mkl-dnn pulumi vim@7.4
c-blosc fselect kubernetes-helm mkvtoolnix pumba vtk
cabextract futhark kustomize monero pushpin vulkan-headers
caffe gdal ledger mpfr pypy vultr
cdk gearboy leptonica mvtools qalculate-gtk wesnoth
ceres-solver gearsystem lf nano qxmpp widelands
cfr-decompiler geocode-glib lgogdownloader nave rancher-cli wolfssl
chapel git-fixup libbitcoin ncmpcpp rawtoaces wsk
checkbashisms gitbucket libbitcoin-blockchain nco rbenv wtf
chezscheme github-keygen libbitcoin-client ncview re-flex xapian
chronograf gitlab-runner libbitcoin-database netcdf rebar3 xcodegen
cimg glibmm libbitcoin-explorer netdata redis xpa
clamav glm libbitcoin-network nghttp2 redis@3.2 xxhash
cli53 glog libbitcoin-node nginx redis@4.0 yelp-tools
clojure glooctl libbitcoin-protocol nicovideo-dl rke ykpers
clojurescript gloox libbitcoin-server nifi rst-lint youtube-dl
compcert gmic libbluray nnn ruby-build yq
conan gmsh libdill nss ruby@2.5 zabbix
conserver gmt libetpan ocamlbuild s3fs zenity
consul gmt@4 libfabric octave s3ql zola
==> Deleted Formulae
go@1.4 go@1.8 monax solr@5.5 solr@6.6 tmux-cssh zxing-cpp
==> Installing dependencies for nginx: openssl
==> Installing nginx dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2r.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2r.mojave.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.
If you need to have openssl first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
For compilers to find openssl you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
For pkg-config to find openssl you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
==> Summary
? /usr/local/Cellar/openssl/1.0.2r: 1,795 files, 12.1MB
==> Installing nginx
==> Downloading https://homebrew.bintray.com/bottles/nginx-1.15.10.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring nginx-1.15.10.mojave.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.15.10: 25 files, 2MB
==> Caveats
==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.
If you need to have openssl first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
For compilers to find openssl you may need to set:
export LDFLAGS="-L/usr/local/opt/openssl/lib"
export CPPFLAGS="-I/usr/local/opt/openssl/include"
For pkg-config to find openssl you may need to set:
export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"
==> 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