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)
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
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,
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,
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 =
[Go to] find out the relationship between FastCgi and PHP-fpm, fastcgiphp-fpm. [Switch] find out the relationship between FastCgi and PHP-fpm. fastcgiphp-fpm: some people on the Internet say that fastcgi is a protocol, and php-fpm implements this
First, process tracking
The code is as follows
Copy Code
# Top//Find process PID with high CPU usage# Strace-p PID//tracking process# LL/PROC/PID/FD//See which files the process is working on
There will be
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
Php-FPM configuration in nginx tutorialNginx can directly call FPM to drive php and then discard apache. Let's not talk about the reason.First download the php5.4 installation package.According to others The code is as follows:Copy code .
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
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.