ps -ef | grep tomcat:

ps -ef的意思是以长格式显示所有进程,“|”是管道,前面ps的输出做为后面的输入,然后grep tomcat是在所有进程里查找与字符tomcat有关的进程,并显示

ps -ef | grep tomcat

转载于:https://my.oschina.net/okqq/blog/747210

相关文章: