stop php process linux 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 '[n]ginx' | awk '{print $2}')
kill $(ps aux | grep '[p]hp' | awk '{print $2}')
kill $(ps aux | grep '[n]ginx' | awk '{print $2}')