Kill all php processes code example
Example 1: kill php process
kill $(ps aux | grep '[p]hp' | awk '{print $2}')
Example 2: kill php process
kill $(ps aux | grep '[m]ysql' | awk '{print $2}')
Example 3: kill php process
kill $(ps aux | grep '[n]ginx' | awk '{print $2}')