mac 使用 brew 安装 nginx 及各种命令

一、安装

brew install nginx

sudo brew install nginx

 

二、启动

brew services start nginx

sudo brew services start nginx

 

三、重启

brew services restart nginx

或者

sudo brew services restart nginx

 

四、停止

brew services stop nginx

或者

sudo brew services stop nginx

 

五、查看

cat usr/local/etc/nginx/nginx.conf

 

六、编辑

vi usr/local/etc/nginx/nginx.conf

 

posted @ 2019-09-18 12:20  Leophen  阅读(3572)  评论(0编辑  收藏  举报