mac nginx 非brew安装_mac安装nginx过程,brew安装

王高邈
2023-12-01

安装使用brew安装

admindeMacBook-Pro:~ admin$ brew search nginx

nginx

homebrew/nginx/accept-language-nginx-module

homebrew/nginx/accesskey-nginx-module

homebrew/nginx/ajp-nginx-module

homebrew/nginx/anti-ddos-nginx-module

homebrew/nginx/array-var-nginx-module

homebrew/nginx/auth-digest-nginx-module

homebrew/nginx/auth-ldap-nginx-module

homebrew/nginx/auth-pam-nginx-module

homebrew/nginx/auto-keepalive-nginx-module

homebrew/nginx/autols-nginx-module

homebrew/nginx/cache-purge-nginx-module

homebrew/nginx/captcha-nginx-module

homebrew/nginx/counter-zone-nginx-module

homebrew/nginx/ctpp2-nginx-module

homebrew/nginx/dav-ext-nginx-module

homebrew/nginx/dosdetector-nginx-module

homebrew/nginx/echo-nginx-module

homebrew/nginx/eval-nginx-module

homebrew/nginx/extended-status-nginx-module

homebrew/nginx/fancyindex-nginx-module

homebrew/nginx/geoip2-nginx-module

homebrew/nginx/headers-more-nginx-module

homebrew/nginx/healthcheck-nginx-module

homebrew/nginx/http-accounting-nginx-module

homebrew/nginx/http-flood-detector-nginx-module

homebrew/nginx/http-remote-passwd-nginx-module

homebrew/nginx/log-if-nginx-module

homebrew/nginx/lua-nginx-module

homebrew/nginx/mod-zip-nginx-module

homebrew/nginx/mogilefs-nginx-module

homebrew/nginx/mp4-h264-nginx-module

homebrew/nginx/mruby-nginx-module

homebrew/nginx/naxsi-nginx-module

homebrew/nginx/nchan-nginx-module

homebrew/nginx/nginx-full

homebrew/nginx/notice-nginx-module

homebrew/nginx/php-session-nginx-module

homebrew/nginx/push-stream-nginx-module

homebrew/nginx/realtime-req-nginx-module

homebrew/nginx/redis-nginx-module

homebrew/nginx/redis2-nginx-module

homebrew/nginx/rtmp-nginx-module

homebrew/nginx/set-misc-nginx-module

homebrew/nginx/small-light-nginx-module

homebrew/nginx/stream-lua-nginx-module

homebrew/nginx/subs-filter-nginx-module

homebrew/nginx/tcp-proxy-nginx-module

homebrew/nginx/txid-nginx-module

homebrew/nginx/unzip-nginx-module

homebrew/nginx/upload-nginx-module

homebrew/nginx/upload-progress-nginx-module

homebrew/nginx/upstream-order-nginx-module

homebrew/nginx/ustats-nginx-module

homebrew/nginx/var-req-speed-nginx-module

homebrew/nginx/vod-nginx-module

homebrew/nginx/websockify-nginx-module

homebrew/nginx/xsltproc-nginx-module

admindeMacBook-Pro:~ admin$ brew install nginx

==> Installing dependencies for nginx: openssl, pcre

==> Installing nginx dependency: openssl

==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2j.sierra.bottl

######################################################################## 100.0%

==> Pouring openssl-1.0.2j.sierra.bottle.tar.gz

==> Using the sandbox

==> 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

This formula is keg-only, which means it was not symlinked into /usr/local.

Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries

Generally there are no consequences of this for you. If you build your

own software and it requires this formula, you'll need to add to your

build variables:

LDFLAGS: -L/usr/local/opt/openssl/lib

CPPFLAGS: -I/usr/local/opt/openssl/include

==> Summary

 /usr/local/Cellar/openssl/1.0.2j: 1,695 files, 12M

==> Installing nginx dependency: pcre

==> Downloading https://homebrew.bintray.com/bottles/pcre-8.39.sierra.bottle.tar

######################################################################## 100.0%

==> Pouring pcre-8.39.sierra.bottle.tar.gz

 /usr/local/Cellar/pcre/8.39: 203 files, 5.4M

==> Installing nginx

==> Downloading https://homebrew.bintray.com/bottles/nginx-1.10.1.sierra.bottle.tar.gz

######################################################################## 100.0%

==> Pouring nginx-1.10.1.sierra.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.10.1: 7 files, 972.3K

admindeMacBook-Pro:~ admin$ nginx -v

nginx version: nginx/1.10.1

 类似资料: