Nginx(pronunciation engine x) is developed specifically for performance optimization, and its most well-known advantages are its stability and low system resource consumption, as well as the HTTP High processing power for concurrent connections (a single physical server can support 30000~50000 concurrent requests). Because of this, a large number of companies offering social networking sites, news, e-commerce and virtual hosting services have chosen Ngnix to provide WEB Services.
Nginx's specific configuration process:
1. First the system has a yum warehouse, install the dependency package
650) this.width=650; "style=" Float:none; "title=" 1.png "src=" http://s3.51cto.com/wyfs02/M00/6F/F3/ Wkiom1wuckjgrji2aabsyxcrx80134.jpg "alt=" Wkiom1wuckjgrji2aabsyxcrx80134.jpg "/>
2. Unpacking the Nginx installation package
650) this.width=650; "style=" Float:none; "title=" 2.png "src=" http://s3.51cto.com/wyfs02/M01/6F/F0/ Wkiol1wucoubsgvuaac_uqtsb4s182.jpg "alt=" Wkiol1wucoubsgvuaac_uqtsb4s182.jpg "/>
3. Installing the GCC Compilation tool
650) this.width=650; "style=" Float:none; "title=" 3.png "src=" http://s3.51cto.com/wyfs02/M01/6F/F3/ Wkiom1wuckizedeeaabj27mlgla990.jpg "alt=" Wkiom1wuckizedeeaabj27mlgla990.jpg "/>
4. Enter the Nginx directory to compile the configuration
650) this.width=650; "style=" Float:none; "title=" 4.png "src=" http://s3.51cto.com/wyfs02/M01/6F/F4/ Wkiom1wuckngak0eaaczjd1bzqq435.jpg "alt=" Wkiom1wuckngak0eaaczjd1bzqq435.jpg "/>
5. Installing Nginx
650) this.width=650; "style=" Float:none; "title=" 5.png "src=" http://s3.51cto.com/wyfs02/M02/6F/F0/ Wkiol1wucozxdygdaabbpzzvvdo345.jpg "alt=" Wkiol1wucozxdygdaabbpzzvvdo345.jpg "/>
6. Optimize the path of Nginx
650) this.width=650; "style=" Float:none; "title=" 6.png "src=" http://s3.51cto.com/wyfs02/M00/6F/F4/ Wkiom1wuclrghan-aaejzp0pqeu462.jpg "alt=" Wkiom1wuclrghan-aaejzp0pqeu462.jpg "/>
7. Write a Nginx startup and shutdown script, CP to the Init.d file, set the boot-start Nginx service
650) this.width=650; "style=" Float:none; "title=" 7.png "src=" http://s3.51cto.com/wyfs02/M01/6F/F0/ Wkiol1wucp2gfudvaad16_y1lfo378.jpg "alt=" Wkiol1wucp2gfudvaad16_y1lfo378.jpg "/>
8. After restarting Nginx, visit the client
650) this.width=650; "style=" Float:none; "title=" 8.png "src=" http://s3.51cto.com/wyfs02/M01/6F/F4/ Wkiom1wuclrgr6neaadtexksvgi141.jpg "alt=" Wkiom1wuclrgr6neaadtexksvgi141.jpg "/>
9. Use this command to check configuration file modification status
650) this.width=650; "style=" Float:none; "title=" 9.png "src=" Http://s3.51cto.com/wyfs02/M02/6F/F4/wKiom1WuCLqTug_ Xaackpd-vreq497.jpg "alt=" Wkiom1wuclqtug_xaackpd-vreq497.jpg "/>
10. Create a Test Web page based on a domain name
650) this.width=650; "style=" Float:none; "title=" 10.png "src=" http://s3.51cto.com/wyfs02/M02/6F/F0/ Wkiol1wucp2svt20aagsa8hiylo821.jpg "alt=" Wkiol1wucp2svt20aagsa8hiylo821.jpg "/>
11. Edit the master configuration file
650) this.width=650; "style=" Float:none; "title=" 11.png "src=" http://s3.51cto.com/wyfs02/M02/6F/F4/ Wkiom1wucncxixuyaaa4zkii-ds855.jpg "alt=" Wkiom1wucncxixuyaaa4zkii-ds855.jpg "/>
12. Note {} Do not more and write less
650) this.width=650; "style=" Float:none; "title=" 12.png "src=" http://s3.51cto.com/wyfs02/M00/6F/F0/ Wkiol1wucror-gkraaesw2k2ym0096.jpg "alt=" Wkiol1wucror-gkraaesw2k2ym0096.jpg "/>
13. Restart the service
650) this.width=650; "style=" Float:none; "title=" 13.png "src=" http://s3.51cto.com/wyfs02/M00/6F/F0/ Wkiol1wucrobieb8aaarcyr_tdg656.jpg "alt=" Wkiol1wucrobieb8aaarcyr_tdg656.jpg "/>
14. Access to the client
650) this.width=650; "style=" Float:none; "title=" 14.png "src=" http://s3.51cto.com/wyfs02/M00/6F/F4/ Wkiom1wucnchzv7-aabuarkjsws185.jpg "alt=" Wkiom1wucnchzv7-aabuarkjsws185.jpg "/>
650) this.width=650; "style=" Float:none; "title=" 15.png "src=" http://s3.51cto.com/wyfs02/M01/6F/F0/ Wkiol1wucroiw1vkaabk_eulfcc274.jpg "alt=" Wkiol1wucroiw1vkaabk_eulfcc274.jpg "/>
Linux Nginx compiler installation and virtual host configuration