安装brew 软件仓库,
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
用brew安装命令
brew tap openresty/brew brew install openresty
启动openresty
后台启动
brew services start openresty/brew/openresty
前台启动
openresty