Home > Operation and Maintenance > Apache > Comparison of Apache and nginx

Comparison of Apache and nginx

青灯夜游
Release: 2019-11-19 11:22:09
Original
2133 people have browsed it

Comparison of Apache and nginx

Advantages of nginx over apache:

●Lightweight, also serves web services, and takes up less memory and resources than apache

● Anti-concurrency, nginx processes requests asynchronously and non-blockingly, while apache is blocking. Under high concurrency, nginx can maintain low resources, low consumption and high performance

● Highly modular Designing and writing modules is relatively simple

● The community is active and various high-performance modules are produced quickly

● Nginx supports more concurrent connections and can support up to 50,000 concurrent connections

● The version can be upgraded without interrupting the service, and can run uninterrupted (7*24)

● The static processing performance is higher than apache

The advantages of apache over nginx:

● Rewrite is more powerful than nginx’s rewrite

● There are so many modules that you can basically find everything you can think of

● Few Bugs, nginx has relatively many bugs, apache has a more mature technology and development community

●The dynamic processing performance is higher than nginx

The core difference between the two is:

Apache is a synchronous multi-process model, and one connection corresponds to one process; nginx is asynchronous, and multiple connections (10,000 levels) can correspond to one process.

The above is the detailed content of Comparison of Apache and nginx. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template