前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >2019-03-28 mac 用brew安装nginx

2019-03-28 mac 用brew安装nginx

作者头像
Albert陈凯
发布2019-04-01 11:14:26
1.5K0
发布2019-04-01 11:14:26
举报
文章被收录于专栏:Albert陈凯

mac 用brew安装nginx

其实我主要是记录默认的几个目录的

代码语言:javascript
复制
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
本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2019.03.28 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • mac 用brew安装nginx
相关产品与服务
Grafana 服务
Grafana 服务(TencentCloud Managed Service for Grafana,TCMG)是腾讯云基于社区广受欢迎的开源可视化项目 Grafana ,并与 Grafana Lab 合作开发的托管服务。TCMG 为您提供安全、免运维 Grafana 的能力,内建腾讯云多种数据源插件,如 Prometheus 监控服务、容器服务、日志服务 、Graphite 和 InfluxDB 等,最终实现数据的统一可视化。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档