安装
brew install nginx
配置
cd /usr/local/etc/nginx
ls -al
#nginx.conf为配置文件
vim nginx.conf
#nginx安装目录
cd /usr/local/Cellar/nginx
安装
brew install nginx
配置
cd /usr/local/etc/nginx
ls -al
#nginx.conf为配置文件
vim nginx.conf
#nginx安装目录
cd /usr/local/Cellar/nginx