in Uncategorized

kill all PHP, Nginx, Mysql processes

To kill all PHP Processes

kill -9 $(ps aux | grep '[p]hp' | awk '{print $2}')

To kill all Nginx Processes

kill -9 $(ps aux | grep '[n]ginx' | awk '{print $2}')

To kill all MySQL Processes

kill -9 $(ps aux | grep '[m]ysql' | awk '{print $2}')