PHP-FPM Smooth restart Turn off

Source: Internet
Author: User

This article is mainly for the detailed introduction of PHP-FPM smooth restart turn off, interested in small partners can refer to

Let's take a look at these commands.

INT, term immediately terminate quit smooth terminate USR1 reopen log file USR2 Smooth reload all worker processes and reload the configuration and binary modules

Example

1. Pkill php-fpm force off 2. Kill-int ' Cat/usr/local/php/var/run/php-fpm.pid ' 3. /USR/LOCAL/PHP/SBIN/PHP-FPM Boot 4. KILL-USR2 ' cat/usr/local/php/var/run/php-fpm.pid ' smooth restart 5. PS aux | Grep-c PHP-FPM View the number of PHP-FPM processes: 6. PS aux |grep php-fpm View the master process number for PHP-FPM

Cat/usr/local/php/var/run/php-fpm.pid View PHP-FPM process number, you can use PS aux |grep php-fpm view
Re-use

KILL-USR2 [PID]
Related Article

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.