Linux, Tips and TricksKill all PHP, ngix, mysql processes

Kill all PHP, ngix, mysql processes

Note: Please use with caution. I am not responsible if you mess up your production server. You have been warned !


# kill all PHP Processes
kill $(ps aux | grep '[p]hp' | awk '{print $2}')

# kill all Nginx Processes
kill $(ps aux | grep ‘[n]ginx’ | awk ‘{print $2}’)

# kill all MySQL Processes
kill $(ps aux | grep ‘[m]ysql’ | awk ‘{print $2}’)

Categories: Linux, Tips and Tricks

Comments

No Comments Yet. Be the first?

Post a comment

Your email address will not be published. Required fields are marked *