PHP-FPM Restart, abort Operation command in PHP

Source: Internet
Author: User
Tags fpm

PHP-FPM Restart, abort Operation command in PHP:

Service Nginx Restart

Service PHP-FPM Restart

To view the number of PHP-FPM processes:
PS aux | Grep-c PHP-FPM

View running Memory
/usr/bin/php-i | grep mem

View PHP Compilation parameters
/usr/bin/php-i | grep Configure

Restart PHP-FPM
/ETC/INIT.D/PHP-FPM restart

First, to find the php-fpm.conf configuration file, see the configuration path of the PID (not the installation path), and then change the corresponding place below to normal execution.

[[Email protected] ~]# PS aux | grep php-fpm
Root 11799 0.0 0.0 103248 880 pts/0 s+ 13:51 0:00 grep--color php-fpm
Root 11973 0.0 0.0 417748 964? Ss Jun01 0:20 php-fpm:master process (/usr/local/php/etc/php-fpm.conf)

Cat/etc/php-fpm.conf
See
PID =/var/run/php-fpm/php-fpm.pid

PHP-FPM Configuration Test
/usr/local/php/sbin/php-fpm-t
/usr/local/php/sbin/php-fpm-c/usr/local/php/etc/php.ini-y/usr/local/php/etc/php-fpm.conf-t

PHP-FPM Boot:
/usr/local/php/sbin/php-fpm
/usr/local/php/sbin/php-fpm-c/usr/local/php/etc/php.ini-y/usr/local/php/etc/php-fpm.conf
PHP-FPM off:
Kill-int ' Cat/var/run/php-fpm/php-fpm.pid '
PHP-FPM Restart:
KILL-USR2 ' Cat/var/run/php-fpm/php-fpm.pid '

To view the number of PHP-FPM processes:
PS aux | Grep-c PHP-FPM

PHP-FPM Restart, abort Operation command in PHP

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.