ps aux|grep -v grep|awk '/httpd/{sum+=$6;n++};END{print sum/n}' 转载于:https://my.oschina.net/u/1433006/blog/512957