查看tomcat应用程序pid

方法1:tomcat echo $(ps -ef |grep tomcat |grep -w 'tomcat_name'|grep -v 'grep'|awk '{print $2}')awk 如:返回27742 grep tomcat_name: tomcat根目录方法 方法2:ps ps -ef | grep tomcat ps -aux| grep tomcat  ... 第一行,第二列即t
相关文章
相关标签/搜索