php-fpm Several restart methods of

mode 1: signal control

php 5.3.3 Later php-fpm  No longer supported  php-fpm Previous /usr/local/php/sbin/php-fpm
(start|stop|reload) Wait for the order , So don't look at this old order , Signal control is required :

master The process can understand the following signals

INT, TERM  Immediate termination
QUIT  Smooth termination
USR1  Reopen the log file
USR2  Smooth overload all worker Process and reload the configuration and binary modules  
ps aux|grep php-fpm
find master Main process ( Find a pair Ss), Find the process corresponding to the main process ID( This is me 2542)
kill -USR2 2542

 

Mode 2 : php-fpm.pid control

View profile  cat /usr/local/php/etc/php-fpm.conf find ,pid Configured to open , In this way
[global] ; Pid file ; Note: the default prefix is /usr/local/php/var ; Default
Value: none pid = run/php-fpm.pid
php-fpm close :
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'
 

Technology
©2020 ioDraw All rights reserved
Programmer interview asked “ What are your shortcomings ”, How to answer ?C language : Digital puzzle games JavaScript study ( Scope )java object-oriented 4- Code block python: Einstein ladder problem Morphological processing gradient , Top hat , Black hat Why automated testing ? What kind of project is suitable for automated testing ?CCF A series of questions --2016 year 4 Month 1 Calculation of break point filemanager-webpack-plugin Turn resources into zip Package and archive Python be based on Django Design of course selection system for student educational administration