命令:ps -ef | grep xxxserver | grep -v grep|wc -l 和命令ps -ef|grep essd |grep -v grep |grep aaa的写法类似,作用也类似
ps -ef 指令用来查询所有进程
grep通过管道来过滤
grep -v 是反向查询的意思,grep -v grep的作用是除去包含grep的项。