brew安装nginx

mac下执行:brew install nginx。

wangbin:bin wangbin$ brew install nginx
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles/op
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles/pc
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles/ng
==> Installing dependencies for nginx: openssl@1.1 and pcre
==> Installing nginx dependency: openssl@1.1
==> Pouring openssl@1.1-1.1.1g.catalina.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the system
keychain. To add additional certificates, place .pem files in
  /usr/local/etc/openssl@1.1/certs

and run
  /usr/local/opt/openssl@1.1/bin/c_rehash

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,
because macOS provides LibreSSL.

If you need to have openssl@1.1 first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> /Users/wangbin/.bash_profile

For compilers to find openssl@1.1 you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"

==> Summary
🍺  /usr/local/Cellar/openssl@1.1/1.1.1g: 8,059 files, 18MB
==> Installing nginx dependency: pcre
==> Pouring pcre-8.44.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/pcre/8.44: 204 files, 5.5MB
==> Installing nginx
==> Pouring nginx-1.19.2.catalina.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.19.2: 25 files, 2.1MB
==> `brew cleanup` has not been run in 30 days, running now...
Removing: /Users/wangbin/Library/Caches/Homebrew/git--2.23.0.mojave.bottle.tar.gz... (17.1MB)
Removing: /usr/local/Cellar/openssl/1.0.2s... (1,795 files, 12.0MB)
Removing: /usr/local/Cellar/pcre/8.43... (204 files, 5.5MB)
Removing: /Users/wangbin/Library/Caches/Homebrew/pcre2--10.33.mojave.bottle.tar.gz... (1.9MB)
Removing: /Users/wangbin/Library/Caches/Homebrew/sqlite--3.29.0.mojave.bottle.tar.gz... (1.9MB)
Removing: /Users/wangbin/Library/Caches/Homebrew/python--wheel--0.33.4.tar.gz... (18.3KB)
Removing: /Users/wangbin/Library/Caches/Homebrew/python--pip--19.1.1.tar.gz... (1.3MB)
Removing: /Users/wangbin/Library/Caches/Homebrew/python--setuptools--41.0.1.zip... (829.1KB)
Removing: /Users/wangbin/Library/Logs/Homebrew/lsof... (64B)
Removing: /Users/wangbin/Library/Logs/Homebrew/sqlite... (64B)
Removing: /Users/wangbin/Library/Logs/Homebrew/pcre2... (64B)
Removing: /Users/wangbin/Library/Logs/Homebrew/git... (64B)
Pruned 2 symbolic links and 9 directories from /usr/local
==> Upgrading 1 dependent:
python@3.8 3.8.5
==> Upgrading python@3.8 -> 3.8.5 
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles/gd
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles/re
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles/sq
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles/xz
==> Downloading https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/bottles/py
==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/3f0592dfdf6bf38c25870

 

posted @ 2020-09-10 21:35  ctlaowang  阅读(671)  评论(0编辑  收藏  举报