Learning notes-nginx mac Configuration learning Experience

Source: Internet
Author: User

----work since the most heard is Nginx, all day in front of others blowing their own very familiar with Nginx. (Installed 13 artifact)

Decide that you are determined to know this, start with the configuration environment.

Search the Internet. Configuration method is extremely simple

1. Download Itrem (http://www.iterm2.com/version3.html) for all Macs that are downloaded back

2. After the download is complete, nginx configuration

First of all

First install Brewhome:ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"

Configure this just because it's easy to configure nginx in this environment

Detects if brew is installed successfully after completion:Brew

Then enter the brew install Nginx

This is where the installation is done.

Last input Nginx

Finally select any of the one by one browser inputs:localhost:8080

Appear

---------------------------------------

But it's just the opposite of luck, you or your true character will be so smooth.

In general, there will be errors.

The mistake I came up with was the following.

1. Using the associated brew-installed Nginx, the resulting Nginx folder has an HTML folder. But this folder is this

In the nginx jump when not jump to their own folder index.html, but connected to the outside

"Workaround": After installing Nginx without using the brew method, the resulting HTML folder CP into this directory

Delete the folder now, create one manually (delete the previous backup), copy the index.html file inside the new HTML folder

As to why this error has occurred, I do not quite understand. Hope to get your explanation, let me enlightened!

Also, please let us know how to solve other problems you have encountered.

The above documents are for reference only! There may be errors in the place, please tell us all!

Learn together

Learning notes-nginx mac Configuration learning Experience

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.