How to kill all PHP-FPM processes in a single command line
if who get problem like me:
-bash: killall: command not found
you can use:
sudo kill -9 `sudo ps -ef | grep php-fpm | grep -v grep | awk '{print $2}'`
I found this command here: https://gist.github.com/bmichalski/c8d25fff041a4739d6f0126edb0e9b54 , it worked for me.
You can use killall instead, it takes a process name instead of a PID
killall -KILL php-fpm
ps: -9
and -KILL
are the same