php5.4 php-fpm Restart Tutorial

Source: Internet
Author: User
<title>php5.4 php-fpm Restart Tutorial-PHP</title>

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 php-fpm Restart Tutorial

Www.MyException.Cn, Netizens share in: 2014-06-30 Views: 12 times

php5.4 's php-fpm Restart tutorial
PHP 5.3.3 After the source code 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 –enable-fpm–with-fpm-user=www–with-fpm-group=www–with-libevent-dir=libevent locations.
However, after PHP 5.3.3, PHP-FPM no longer supports commands such as/USR/LOCAL/PHP/SBIN/PHP-FPM (Start|stop|reload), which PHP-FPM previously had, and requires the use of 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 worker processes and reloads the configuration and binary modules

Examples are as follows:
PHP-FPM off:
Kill-int ' Cat/usr/local/php/var/run/php-fpm.pid '
PHP-FPM Restart:
KILL-USR2 ' Cat/usr/local/php/var/run/php-fpm.pid '
In fact, that part of the cat is the PHP-FPM process number, which is probably 5.4 of my problem. Without the use of php-fpm.pid, there is no such file. can be used PS aux | grep PHP-FPM, using the process number of the first process. I tried it.


Original title: php5.4 's php-fpm restart tutorial
Original address: http://www.abcde.cn/info/show-24-125-1.html
  • Contact Us

    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.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.