php5.4 php-fpm Restart Tutorial-PHP
Home Page
Web Development
Android
J2ee
Php
Linux/unix
Mysql
C#
More...
Current Location: Code fan»php»php5.4 php-fpm Restart tutorial
php5.4
Php5.4 php-fpm restart, termination operation command PHP-FPM using signal control: The master process can understand the following signal INT, the TERM immediately terminates QUIT and ends USR1. re-opens the log file USR2. smoothly reload all
[]php 5.3.3 php-fpm restart, abort operation command
PHP 5.3.3 Source has been embedded in the PHP-FPM, not like the previous PHP version of the same special patching, just need to add the compilation parameters in the Configure.
The compilation
PHP-FPM Restart, abort Operation command in PHP 5.4:
View php Run Directory command: which PHP/usr/bin/php
To view the number of PHP-FPM processes:PS aux | Grep-c PHP-FPM
View running Memory/usr/bin/php-i|grep Mem
Restart PHP-FPM/ETC/INIT.D/PHP-FPM
Since php5.3.3, the php source code contains php-fpm. You do not need to install php-fpm by patching it separately, add the parameter-enable-fpm to configure when installing the source code.
Therefore, the method for starting, disabling, and
PHP-FPM Restart, abort Operation command in PHP 5.4
PHP-FPM using signal control:
The master process can understand the following signals
INT, term immediately terminates
QUIT Smooth Termination
USR1 Reopen log file
USR2 smoothly overloads all
Configuration of PHP.ini, PHP-FPM, and www.conf in PHP7Http://www.tuicool.com/articles/NjmQNj6PHP-FPM off:Kill-sigint ' Cat/usr/local/php/var/run/php-fpm.pid 'PHP-FPM Restart:KILL-SIGUSR2 ' Cat/usr/local/php/var/run/php-fpm.pid 'To view the number
Users, traffic what is not big, The FPM process parameters are as follows: Pm.max_children = 100 Pm.start_servers =80 Pm.min_spare_servers = 20 The logs are as follows, from the start of the turn-On error [31-jul-2014 18:49:14] NOTICE: [Pool www]
PHP 5.3.3 Source has been embedded in the PHP-FPM, not like the previous PHP version of the same special patching, just need to add the compilation parameters in the Configure.
The compilation parameters about PHP-FPM have
1. view the current php configuration information and create a findini. php file in the root directory of the php project. The content is as follows :? Phpphpinfo ();? Access the page and you will see the following page: Search for
This article is a little bit of rain original, declined reprint
Objective
After the basic configuration, we can run the PHP environment directly on Nginx, then the next step is to do some of the following operations
Configuring the NIC
Since the
: This article mainly introduces the subsequent configuration in the [Nginx] LNMP environment. if you are interested in the PHP Tutorial, refer to it. This article is original and declined to be reproduced
Preface
After completing the basic
Method One, use the SendMail component to send the message
1. Install SendMail components
Yum Install SendMail
2. Restart the PHP-FPM process using the following command
/ETC/INIT.D/PHP-FPM restart
3. Detect whether the SendMail is running
Tengine + mysql + nginx + PHP1. Configure the FirewallVim/etc/sysconfig/iptables# Allow 80 ports to pass through the firewall-A input-m state--state new-m tcp-p TCP--dport 80-j ACCEPT# Allow 3306 ports to pass through the firewall-A input-m
I set up two scheduled tasks, which are scheduled to restart the service, as follows:
[root@iZ94r80gdghZ tanteng]# crontab -l# 系统计划任务* */1 * * * service mariadb restart >> /home/tanteng/crontab.log* * */1 * * service php70-php-fpm restart >>
Rotten mud: learning how to quickly build an LNMP environment for centos, centoslnmp
This document consistsXiuyi Lin FengProviding friendship sponsorship, first launchedThe world
I used to install software in centos in the source code, but
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 slow response speed: lighttpd + fastcgi + php + mysql server configuration
8-core CPU less than 50 GB memory
Load less than 0.2
Why is the response so slow?
It takes 4-5 seconds to query a task.
No, please give me some advice.
Reply to
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.