首页 > 技术文章 > linux查询当前进程数的命令

usual2013blog 2014-06-13 09:44 原文

$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);

推荐阅读