<p style="text-align: left;">This article mainly introduces how to close php-fpm in Linux. In daily operations, I believe many people have doubts about how to close php-fpm in Linux. The editor consulted various materials and sorted out simple and easy-to-use operations Method, I hope it will be helpful for everyone to answer the doubts about how to close php-fpm in Linux! Next, please follow the editor to learn together!</p><p><br/></p><blockquote><p style="text-align: left;">How to close php-fpm in linux: 1. Enter the Linux system; 2. Open the command window; 3. Find the process through the Whereis php-fpm command; 4. Just close the php-fpm process by ps -ef | grep php-fpm or kill -INT `cat /usr/local/php/sbin/php-fpm`.</p></blockquote><p style="text-align: left;">The operating environment of this tutorial: linux5.9.8 system, PHP8.1 version, DELL G3 computer<br/></p><p style="text-align: left;"><strong>How to close php-fpm in linux? </strong></p><p style="text-align: left;">Start under linux, close, restart the php-fpm process</p><p style="text-align: left;"><br/></p><p style="text-align: left;"><code>#find
Where is php-fpm
# close the process
ps -ef | grep php-fpm
#1 Find the master main process and kill it
the
#2 close by pid file
kill -INT `cat /usr/local/php/sbin/php-fpm` #Close now</code></p><p><br/></p><p style="text-align: left;">Restart</p><p style="text-align: left;"><br/></p><p style="text-align: left;"><code>kill -USR2 `cat /usr/local/php/sbin/php-fpm.pid`</code></p><p><br/></p><p style="text-align: left;">Check the number of php-fpm processes</p><p style="text-align: left;"><br/></p><p style="text-align: left;"><code>ps aux | grep -c php-fpm</code></p><p><br/></p><p><br/></p>