How to Use the supervisor to guard the main php-fpm process for Automatic Restart of php-fpm, supervisorphp-fpm
Recently, a colleague has a monitoring requirement for the php-fpm process, that is, if the master process of the php-fpm unexpectedly exits (may be crash or kill
In a Linux operating system, there is a system software package, which features similar to "add and delete programs" in Windows, but features much better than "add and delete programs, it is RedHatPackageManager (RPM ). In a Linux operating system, there is a system software package, which functions similar to "add/delete programs" in Windows, but is much more powerful than "add/delete programs, it is Red Hat Package Manager (
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 www.conf //内容如下[www]listen = /tmp/php-fcgi.socklisten.mode=666user = php-f
The pool of PHP-FPMWhen a lot of PHP sites share a pool, if one of the sites affect the pool, will cause other sites also problems, in order to avoid this problem, need to create a new pool for each site, isolation, security services1, [[email protected] ~]# vim/usr/local/php-fpm/etc/php-fpm.confNew:[Test.com]Listen =/tmp/test.sockListen.mode = 666user = PHP-FPMGroup = PHP-FPMPM = dynamicPm.max_children = 50Pm.start_servers = 20Pm.min_spare_servers =
12.21 PHP-FPM's PoolCd/usr/local/php-fpm/etcVI php-fpm.confReload and view the service and find the aming.com on the rightcd/usr/local/nginx/conf/vhost/VI aaa.com.conf, content as followsIf the test.com process is very large, exhausted the process of php-fpm, then there is a new process will be the most time to sweep the wrong 502, because there is no unnecessary process to deal with it, and aming.com site
In a Linux operating system, there is a system software package, which functions similar to "Add/delete programs" in Windows, but is much more powerful than "Add/delete programs, it is Red Hat Package Manager (RPM ). This toolkit was first launched by Red Hat and later borrowed by other Linux developers. Because it saves Linux users a lot of time, it is widely used to install and delete software in Linux. The following describes how to use it.1. We ge
1, the pool of PHP-FPM Edit Profile vim/usr/local/php/etc/php-fpm.conf, at which point only one pool is defined, the WWWYou can define multiple pool, listen to different addresses or sockets, and if you have multiple sites, you can use multiple pool so that when one of the sites is 502, it does not affect the normal access of other sites.Add the following section to the configuration file, vim/usr/local/php/etc/php-fpm.conf[Aming.com]Listen =/tmp/ami
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 of other sites using the same pool. The way of implementation and Nginx Vhost almost
Edit the master configuration file[[emailprotected] aming.com]# vim /usr/local/php-
The pool of PHP-FPMMethod 1: In a large configuration file unified implementationEditing a configuration fileReload ConfigurationMethod 2: The total number of methods, first in the large configuration file to set a large directory, and then add 2 pool in this directory1. Editing a large configuration file2. Configure 2 small configuration files in this directoryReload configuration, verify poolPHP-FPM Slow Execution LogConfiguration fileReloadVim/data
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 PHP-FPM
Nginx can open more than one virtual machine, they all need PHP to provide services, so in order to ensure the performan
Recently, a colleague has a guardianship requirement for the PHP-FPM process, i.e. if the master process of PHP-FPM quits unexpectedly (possibly crash, it could be a false kill), then the master process is expected to be pulled automatically to avoid interruption of service.We know that supervisor is a very powerful process monitoring (monitor Control) tool that can theoretically implement the PHP-
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 edit the PHP-FPM configuration file:[Email protected] etc]# vim/usr/local/php-fpm/etc/php-fpm.conf......[Adai.com]Listen =/tmp/adai.sockListen.mode = 666user = P
Rotten mud: nginx, php-fpm, mysql user permission parsing, nginxphp-fpm
This article is first published in the dark world.
I learned how to build a wordpress blog under nginx a few days ago. In the article "dirty mud: Using nginx to build a WordPress blog using a virtual host", we specifically mention the user who runs the program.
In this article, we will explain the configuration of nginx, php-
PHP-FPM for performance optimization and PHP-FPM performance optimization
Brief introduction:
PHP-FPM is a PHP FastCGI manager, General Nginx above the PHP program will throw PHP program to PHP-FPM to parse. All right, that's it!
PHP 5.4 began to integrate the PHP-FPM, that
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 summary:
PHP-FPM is a PHP FastCGI manager, which is actually a PHP source code pa
1, php-fpm Poo Pond:Purpose: Can make different Web sites, for different PHP parsing, can be different sites to separate the parsing area.Editor:vim/usr/local/php5-fpm/etc/php-fpm.confJoin:[Test]Listen =/tmp/php-test.sockListen.mode = 666user = php-fpmGroup = php-fpmpm = DynamicPm.max_children =pm.start_servers =pm.min_spare_servers = 5pm.max_spare_servers =pm.max_requests =rlimit_files = 1024x768grammar ch
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.