Basic installation In fact online more than half tutorial: installation: Brew Install nginx configuration Note points: 1. The main configuration of the listening port and the PHP-FPM listening port can be configured as default: (127.0.0.1:9000) Fastcgi_pass parameters  2. Configure Basic property information. It is best to separate out a folder specifically configured for routing interface information I use the latest mac 10.10 1. To the Nginx installation directory (/usr/local/etc/nginx/) 2. Create Sites-available sites-enable (as with Linux) 3.vim nginx.conf as shown in: Modified by the user, And the Red Mark section.        4.CD Sites-available. Configure the Add file configuration. Whatever the name is, the configuration file will be read. or: 5. When debugging, you can open more than one window to see the log situation: Tail-f/etc/local/usr/log /nginx/*.log Basically this configuration is fine. The lever. 6. See this and, if you are a novice, you may ask: why do you need to create more than one sites-availabel ... what do you want to do? External references. Well, actually this is a good habit, and if you have a lot of routing structure, you can manage it conveniently. Imagine if there are 100 of pages. &nBsp Don't ask me why I know, I asked.
Mac configuration Nginx