一、安装
代码语言:javascript复制brew install nginx
或
代码语言:javascript复制sudo brew install nginx
二、启动
代码语言:javascript复制brew services start nginx
或
代码语言:javascript复制sudo brew services start nginx
三、重启
代码语言:javascript复制brew services restart nginx
或者
代码语言:javascript复制sudo brew services restart nginx
四、停止
代码语言:javascript复制brew services stop nginx
或者
代码语言:javascript复制sudo brew services stop nginx
五、查看
代码语言:javascript复制cat usr/local/etc/nginx/nginx.conf
六、编辑
代码语言:javascript复制vi usr/local/etc/nginx/nginx.conf