linux查询当前进程数的命令

$command = "ps aux | grep  'zb_insure/get_order_info_from_queue.php' | grep -v 'grep' |  grep -v '/bin/sh'   | wc -l";
exec($command, $out_arr, $return_var);

原文地址:https://www.cnblogs.com/usual2013blog/p/3785226.html