84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Someone asked me this during the previous interview. . .
For example, PHP load balancing does not require a reverse proxy. Direct fastcgi_pass to multiple php-fpm can also be used for load balancing.
Specific configuration:
upstream myapp { server 192.168.20.1:9000; # PHP-FPM 1 server 192.168.20.2:9000; # PHP-FPM 2 ...... } server { listen 80; location ~ \.php$ { include fastcgi_params; fastcgi_param SCRIPT_FILENAME /phpfiles$fastcgi_script_name; fastcgi_pass myapp; } }
For example, PHP load balancing does not require a reverse proxy. Direct fastcgi_pass to multiple php-fpm can also be used for load balancing.
Specific configuration: