mac安装nginx

1、安装

brew install nginx

2、启动或重启

sudo brew services start nginx
sudo brew services restart nginx
sudo brew services stop nginx

3、配置文件

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

https://www.sylvaindurand.org/setting-up-a-nginx-web-server-on-macos/

原文地址:https://www.cnblogs.com/liuzhenwei/p/10075427.html