这篇文章不全 看转载于 https://www.cnblogs.com/wangzehuaw/p/7832560.html
安装xcode命令行工具的命令
xcode-select --install
安装homebrew:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
旧版本homebrew升级:
brew update
Nginx安装
brew install nginx
➜ ~ brew install nginx Updating Homebrew... ==> Installing dependencies for nginx: pcre, openssl@1.1 ==> Installing nginx dependency: pcre ==> Downloading https://homebrew.bintray.com/bottles/pcre-8.39.sierra.bottle.tar.gz ######################################################################## 100.0% ==> Pouring pcre-8.39.sierra.bottle.tar.gz