nginx安装
brew search nginx查询版本
使用brew install nginx 安装
Docroot is: /usr/local/var/www (服务器默认路径)
The default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so that (配置文件路径)
nginx can run without sudo.
nginx will load all files in /usr/local/etc/nginx/servers/.
To have launchd start nginx now and restart at login:
brew services start nginx
Or, if you don't want/need a background service you can just run:
nginx
==> Summary
🍺 /usr/local/Cellar/nginx/1.12.2_1: 23 files, 1MB (安装路径)