The pool of PHP-FPM
To avoid using the same pool for multiple sites, a separate pool for each site needs to be configured if one site's traffic is too large to cause problems with resource exhaustion, which in turn affects the normal operation
This article describes how to use PHP magic methods, this article describes how to use magic methods such as _ get, _ set, _ call, _ callStatic, _ toString, and _ invoke. For more information, see
① _ Get/_ set: takes over the attributes of an
LNMP Architecture Introduction
The only difference with lamp is that n in Lnmp refers to Nginx (a Web service software similar to Apache). The application of this kind of environment is also very many at present. Nginx Design is designed to
PHP magic examples
① _ Get/_ set: takes over the attributes of an object.
When accessing a non-existent object property:
Index. phpCopy codeThe Code is as follows:Define ('basedir' ,__ DIR _); // defines the root directory constantInclude BASEDIR. '/
Let's take a look at this article and repost it from nginx.cn.
Nginx itself cannot process PHP. It is only a Web server. After receiving the request, if it is a PHP request, it is sent to the PHP interpreter for processing and the result is
First, the pool of PHP-FPM
The PHP-FPM configuration file php-fpm.conf can be set to multiple pool, where one pool resource is exhausted, causing other sites to be unable to access resources, reporting a 502 error. It is necessary to
The pool of PHP-FPMPHP-FPM configuration file php-fpm.conf can set multiple pool, in which one pool resource is exhausted, will cause other sites to not access resources, reported 502 error. It is necessary to separate the sites, using separate pool
12.21 PHP-FPM's PoolTo avoid the pool problem caused by one site failure due to multiple sites using the same pool, and to affect the normal operation of other sites using the same pool, configure a separate pool for each site.Add Pool to PHP-FPMTo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.