First go to the official website to download Nginx The latest version of Windows, as follows:
Http://nginx.org/download/nginx-1.6.3.zip
After downloading to the package, unzip the Nginx-1.7.6.zip package to your favorite root directory and change the directory name to Nginx
650) this.width=650; "style=" float:left; "src=" http://s3.51cto.com/wyfs02/M02/60/0E/ Wkiom1uqeaqxbjdmaafkymurr48255.jpg "title=" 1.png "alt=" Wkiom1uqeaqxbjdmaafkymurr48255.jpg "/>
2. Then, under the command line, switch Nginx's home directory to do the following:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/60/1C/wKiom1Uqe-Xx_91dAAJGLYM5YrE522.jpg "title=" 2.png " alt= "Wkiom1uqe-xx_91daajglym5yre522.jpg"/>
3. In this way, the Nginx service is started. Open Task Manager to view the Nginx.exe process, with two processes showing
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/60/1E/wKiom1UqfFrSI3GyAAGUAyPQQME583.jpg "title=" 3.png " alt= "Wkiom1uqffrsi3gyaaguaypqqme583.jpg"/>
4. Then open the browser, enter http://127.0.0.1, you can see the Welcome page of Nginx. As follows:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/60/1B/wKioL1UqfiKSLEh7AAIGI5dddgM383.jpg "title=" 4.png " alt= "Wkiol1uqfiksleh7aaigi5dddgm383.jpg"/> In fact, we can also do the following on the command line nginx:
Exactly the same as Linux:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/60/1C/wKioL1UqfpuS6MlrAAGtARYEDxc437.jpg "title=" 5.png " alt= "Wkiol1uqfpus6mlraagtaryedxc437.jpg"/>
The next step is to configure the Nginx conf file. The Nginx configuration file under Windows is the same as the Linux configuration file.
This article is from the "Linux Revolution" blog, so be sure to keep this source http://kaibinyuan.blog.51cto.com/7304008/1631644
Installing Nginx under Windows