51, php-fpm Pool, php-fpm slow execution log, Open_basedir, PHP-FPM process ManagementFirst, the pool of PHP-FPMPool: Right. The right-most column of PS aux. It's the pond.# CD/USR/LOCAL/PHP-FPM/ETC# cat php-fpm.conf//supports defining multiple
[TOC]PHP-FPM configuration related one, PHP-FPM configuration
Unlike lamp, in the LNMP architecture, PHP-FPM as a standalone service exists, and since it is a standalone service, it must have its own configuration file. The PHP-FPM
On several offline servers that are not very busy, the number of PHP-FPM processes is found to be more than 500, and some processes run for several months.
The following troubleshooting was performed to determine if there is a problem with the
This article mainly describes how to configure PHP-FPM, common error resolution and PHP-FPM startup, shutdown, and restart.
The Nginx in the LNMP environment does not support PHP and requires the FASTCGI plug-in to process requests for PHP. and PHP
PHP-FPM ConfigurationUnlike lamp, in the LNMP architecture, PHP-FPM exists as an independent service, and since it is an independent service, he has his own configuration file. The configuration file for PHP-FPM is/usr/local/php-fpm/etc/.Pool (pool)
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
I checked the relationship between fastcgi and php-fpm on the Internet for nearly a week. I basically read it all over again. There are different opinions and there is no authoritative definition. Some on the Internet say that fastcgi is a protocol,
One, PHP-FPM pool (configure multiple pools with multiple isolation sites)#cd/usr/local/php-fpm/etc/#vim php-fpm.conf//Add configuration file to the second site aming.com, [www] and [aming.com] in the configuration file are equivalent to two
First, the pool of PHP-FPMvim /usr/local/php-fpm/etc/php-fpm.conf //在[global]部分增加 include = etc/php-fpm.d/*.conf //类似nginx的vhost mkdir /usr/local/php-fpm/etc/php-fpm.d/ cd /usr/local/php-fpm/etc/php-fpm.d/ vim
The pool of PHP-FPM
NIGNX can configure multiple virtual hosts, PHP-FPM also support the configuration of multiple pool, each pool can listen to a port, can also listen to a socket.
PHP-FPM Configuration Instructions:
Unlike
12.21 PHP-FPM's PoolPHP-FPM supports the definition of multiple pool, each of which can listen to different sockets or different TCP/IP;If Nginx has a number of different sites, then each site can use a pool;If all the sites are using the same 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
Ext.: http://blog.csdn.net/field_yang/article/details/52401994This article mainly describes: How to configure PHP-FPM, common error resolution and PHP-FPM startup, shutdown and restart.Nginx in the LNMP environment does not support PHP and requires
This article introduces the contents of the PHP-FPM pool, php slow execution log, Open_basedir, PHP-FPM process Management, has a certain reference value, now share to everyone, the need for friends can refer to
Pool configuration for
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-FPM1. View Files:[[email protected] ~]# cd /usr/local/php-fpm/etc[[email protected] etc]# lspear.conf php-fpm.conf php-fpm.conf.default[[email protected] etc]# cat php-fpm.conf[global]pid =
Currently, the latest 5.3.x php-fpm has two ways to manage processes: static and dynamic. if it is set to static, the number of processes is always pm from start to end. the number specified by max_children. start... currently, the latest 5.3.x
PHP-FPM configuration and usage summary, php-fpm configuration Summary
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.
PHP-FPM configuration and use
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
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.