Specify Directories
/Usr/local/php/sbin/php-fpm/Usr/local/php/etc/php-fpm.conf/Usr/local/php/etc/php. iniI. startup parameters of php-fpmCopy codeThe Code is as follows:# Test the configuration of
Fault detection1. Other first, top look at the CPU, RAM, swap which is more tense.By analysis, you can see a total of 602 processes, of which 601 processes hibernate. This seems to be something wrong, the kernel process is about 80, plus memcached,
1. Compilation and installation of nginxnginx is not required. It has been very popular in recent years. If you don't know about it, please Baidu nginx first. This article describes how to compile and install nginx and how to combine it with php.
The Lock in PHP programming
Recently read the "Understanding Linux process" This open source book, link. The book describes the process concepts in Linux, and some summaries of locks and interprocess communication (IPC). However, the
Command-line execution under PHP
The following are the options parameters for the command-line mode provided by the PHP binaries (that is, the php.exe program), which you can query at any time by using the php-h command.
usage:php
Contract several directories/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.iniOne, the php-fpm start parameter#测试php-fpm配置/usr/local/php/sbin/php-fpm-t/usr/local/php/sbin/php-fpm-c /usr/local/php/etc/php.ini -y /usr/
To agree on several directories
/USR/LOCAL/PHP/SBIN/PHP-FPM
/usr/local/php/etc/php-fpm.conf
/usr/local/php/etc/php.ini
First, the PHP-FPM start parameter
#测试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
The configuration of LNMP or LNAMP environment is not described here, only the process of configuring multiple instances on the basis of a LNMP environment. Because I am using the lnamp environment, I compile an extra copy of PHP
To agree on several directories
/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.iniI. PHP-FPM startup parameters
#测试php-FPM
Release date: 2011-12-05Updated on: 2011-12-06
Affected Systems:PHP 5.4.0beta2Description:--------------------------------------------------------------------------------Bugtraq id: 50907Cve id: CVE-2011-4566
PHP is a script language running on a
Before using the signal, you need to make sure that the php-fpm.conf is configured with a PID, which is commented out by default.
;p id = run/php-fpm.pid
File in
PHP installation directory/var/run/php-fpm.pid
Signal Description:
After the PHP-FPM is installed, there is no end command that comes with it, which can be done in the following ways:1. First check the PHP-FPM process number:PS grep php-fpm You can see that the master process number is 91790 and there are two
Since php5.3 PHP comes with PHP-FPM is not the same as php5.2 in the form of plugins exist. This brings us a benefit. 502 is not so easy to show up.The vast majority of Linux in the jar should still be in the lnmp of the small army, but the
The restart and termination commands of php-fpm in php5.4 are as follows:
View the php running Directory command: which php/Usr/bin/php
View the number of php-fpm processes:Ps aux | grep-c php-fpm
View running memory/Usr/bin/php-I | grep
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.