kill -KILL `ps aux | grep httpd| awk '{print $1}'` 这样可以杀掉所有Apache进程 ps aux | grep httpd| awk '{print $1}' 其中awk print $1分离出里面的第二个字段