kill all processes in ubuntu php , nginx mysql

if your upstart script fails , you can manually start and stop nginx, mysql , php    For PHP: kill $(ps aux | grep ‘[p]hp’ | awk ‘{print $2}’)   For Nginx: kill $(ps aux | grep ‘[n]ginx’ | awk ‘{print $2}’)   For Mysql: kill $(ps aux | grep ‘[m]ysql’ | awk ‘{print $2}’)

Published
Categorized as Sysadmin Tagged