Nginx server or apache server or nginx + apache.

nginx server or apache server or nginx + apache.

Php
Mar.25,2021

Advantages of

nginx:
1, lightweight, simple configuration
2, asynchronous, multiple connections (level 10,000) can correspond to a process
3. Nginx is suitable for static requests, simple, efficient, and takes up less memory and resources. The front end generally uses nginx as a reverse proxy

. Advantages of

apache:
1, configuration is complex, but rewrite is powerful
2, Synchronize multi-process model, one connection corresponds to one process
3, apache is suitable for handling dynamic requests, stable, strong function

generally speaking, for web services that require performance, use nginx. If you don't need performance but stability, then apache! Now many cluster stations, front-end nginx anti-concurrency, back-end apache clusters, together with the use! As for good and bad, it is only relative.


advantages of nginx over apache:

  1. nginx is concise in configuration and simple in syntax
  2. nginx is easy to mount load balancers

nginx is enough


upstairs I add a
if you want business stability, please use apache, after all, bug
if you pursue high access load balance static page access, you can choose nginx
, but currently choose many


of nginx.

so far, the nginx+apache architecture is cumbersome, redundant, and doesn't make much sense.

Nginx is a high-performance Web service. It does not handle php scripts. All php requests for execution nginx will be forwarded to the PHP-FPM module for execution.

then there is the Nginx configuration file, which is easy to read and much less than what needs to be configured on Apache. So I recommend that you try Nginx+PHP-FPM mode.


Traffic programmer quality is also related to your choice


nginx do many front-end servers, and many back-end servers still use Apache, but now more and more people use Nginx

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e57dcf-45464.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e57dcf-45464.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?