ps -aux --sort=-%cpu|head -10|grep php
ps -aux --sort=-%mem|head -10|grep php
ps -aux|grep php|awk '{cpu+=$3;count++} END {print "PHP进程数:",count,"平均CPU使用率:",cpu/count"%"}'