Linux下杀死Tomcat死掉的进程

1.输入命令ps-ef|grepjava,查看tomcat进程ID

2.输入命令sudo-uusernamekill-9pid,其中userName指用户名

例如:

ps-ef|grepTomcat-6.0输出如下Tomcat-6.0为Tomcat目录名

sun51441010:21pts/100:00:06/java/jdk/bin/java-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager-Djava.endorsed.dirs=/java/tomcat/common/endorsed-classpath:/java/tomcat/bin/bootstrap.jar:/java/tomcat/bin/commons-logging-api.jar-Dcatalina.base=/java/tomcat-Dcatalina.home=/java/tomcat-Djava.io.tmpdir=/java/tomcat/temporg.apache.catalina.startup.Bootstrapstart

则5144就为进程号pid=5144

kill-95144就可以彻底杀死tomcat

相关推荐