----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