1.安装 nginx
☁ local brew install nginx
2.网站根目录
Docroot is: /usr/local/var/www
3.默认配置文件及端口(非 sudo 运行)
/usr/local/etc/nginx/nginx.conf
8080
nginx will load all files in /usr/local/etc/nginx/servers/.
4.启动nginx
brew services start nginx
Or, if you don't want/need a background service you can just run:
nginx
网友评论