Comparison of the advantages and disadvantages between Apache and Nginx

Source: Internet
Author: User

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

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.