启动
//启动
cd /usr/local/cellar/nginx/1.13.9/bin
sudo ./nginx
or sudo nginx
//检查配置文件
sudo ./nginx -t
//重启
sudo ./nginx -s reload
or sudo nginx -s reload
安装
/usr/local/etc/nginx/nginx.conf (配置文件路径)
/usr/local/var/www (服务器默认路径)
/usr/local/Cellar/nginx/1.8.0 (安装路径)