Mac Configuration Nginx

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.