Liunx PHP-FPM

Source: Internet
Author: User

View PHP-FPM Related Information

See if PHP-FPM is open: Ps-ef|grep php

View PHP-FPM's location: Whereis php-fpm

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

View running Memory:/usr/bin/php-i|grep MEM

View php-fpm.conf Configuration

Cat/usr/local/php/etc/php-fpm.conf

See Pid=/var/run/php-fpm/php-fpm.pid

Turn php-fpm on, restart, and close the first way common commands

Open PHP-FPM:PHP-FPM

Restart php-fpm:/etc/init.d/php-fpm restart or kill-usr2 ' cat/var/run/php-fpm/php-fpm.pid ' #如果/etc/init.d/no php-fpm file You can use the second method

PHP-FPM off: Kill-int ' Cat/var/run/php-fpm/php-fpm.pid '

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

The second method uses PHP-FPM to control the php-cgi fastcgi process/usr/local/php/sbin/php-fpm {start|stop|quit|restart|reload|logrotate} #/usr/ The path where the LOCAL/PHP/SBIN/PHP-FPM

--start starting PHP's fastcgi process

--stop forcing the fastcgi process to terminate PHP

--quit smooth termination of PHP fastcgi process

--restart restarting PHP's fastcgi process

--reload re-load PHP php.ini

--logrotate re-enabling the log file

Kill process Mode off PHP-FPM

Kill to slay a process: kill-9 PID

Killall kills a class of processes: killall-9 php-fpm[service Name]

Pkill kills a class of processes: Pkill php-fpm[service Name]

Liunx PHP-FPM

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.