Advantages of nginx over apache:
a. Lightweight, and starting WEB services also takes up less memory and resources than apache
b. Anti-concurrency, nginx processes requests asynchronously and non-blocking, while apache is blocking Yes, nginx can maintain low resources, low efficiency and high performance under high concurrency
c, highly modular design, writing modules is relatively simple
d, active community, various high-performance modules are produced quickly
apache is relatively better than nginx Advantages:
a, rewirte, more powerful than nginx's rewrite
b, so many modules, you can basically find everything you can think of
c, fewer bugs, nginx has relatively many bugs
d, super stable
The above introduces the advantages and disadvantages of apache and nginx, including aspects of content. I hope it will be helpful to friends who are interested in PHP tutorials.