1.the advantages of nginx with respect to Apache:lightweight, the same Web service, than Apacheconsumes less memory and resources
anti-concurrency, Nginx processing requests are asynchronous and non-blocking, while Apache is a blocking type,Nginx can keep low resource consumption and high performance in high concurrency
highly modular design, relatively simple to write modules
community Active, a variety of high-performance modules produced quickly AH
the advantages of Apache with respect to Nginx:
Rewrite, stronger than Nginx's rewrite
Dynamic pages
The module is too much, the basic thought can be found
fewer bugs, nginx bugs are relatively large
Ultra-Stable
3, Nginx Configuration concise, Apache complex
Nginx static processing Performance 3 times times higher than Apache
Apache support for PHP is relatively simple, Nginx needs to cooperate with other backend
Apache has more components than Nginx
Now Nginx is the preferred WEB server
4, the most important difference is that Apache is a synchronous multi-process model, a connection corresponding to a process; Nginx is asynchronous, multiple connections (million levels) can correspond to a process
5,nginx processing static file is good, consumes less memory . But Apache is undoubtedly still the mainstream, with a lot of rich features. So it needs to be paired. Of course, if you can be sure that Nginx is suitable for your needs, then using Nginx will be a more economical approach.
Apache does not support multi-core to download the Chicken rib shortage, recommend using Nginx to do the front end, the back end with Apache. Large Web site suggestions for the use of nginx-generation cluster function
6, from the personal past use of the situation, nginx load capacity is much higher than Apache. The newest server also changed to Nginx. and Nginx change the configuration can be-t test configuration is not a problem, the Apache restart when the configuration error found, will be very crash, change will be very cautious now see a lot of cluster station, front-end nginx anti-concurrency, back-end Apache cluster, with good.
Comparison of the advantages and disadvantages between Apache and Nginx