一、
brew info nginx #查看nginx信息nginx: stable 1.13.12 (bottled), HEADDocroot is: /usr/local/var/wwwThe default port has been set in /usr/local/etc/nginx/nginx.conf to 8080 so thatnginx 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 nginxOr, if you don't want/need a background service you can just run: nginx
Reference: https://www.jianshu.com/p/6c7cb820a020
二、