nginx - How to configure multiple php-cgi process pools

WBOY
Release: 2016-09-21 14:13:13
Original
2173 people have browsed it

Assuming that there are 6 subdomains under nginx, does it mean that I need to open 6 phpcgi process pools? For example 127.0.0.1:9005

Reply content:

Assuming that there are 6 subdomains under nginx, does it mean that I need to open 6 phpcgi process pools? For example 127.0.0.1:9005

Use php-fpm to manage our php parser process. If configured, configure it in fpm/pool/www.conf

Please use php-fpm FastCGI process manager
Not only can it open and manage multiple processes
It can also manage the processing time of each process, the number of processing times, dynamically increase or decrease processes, etc.

Conclusion: No need

phpcgi is a virtual machine of PHP. It will dynamically load PHP code according to the data passed by the CGI protocol. Different domain names may point to different PHP execution codes, but it is not necessary to open multiple CGI pools to distinguish them. Of course, it’s perfectly fine to open more than one.

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