linux tomcat restart 一种方式

 先列出tomcat的进程

 ps -ef|grep tomcat 

 root      1774     1  6 09:24 pts/0    00:01:03 /usr/lib/java/jdk1.6.0_45/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/apache-tomcat-7.0.53/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/tomcat/apache-tomcat-7.0.53/endorsed -classpath /usr/local/tomcat/apache-tomcat-7.0.53/bin/bootstrap.jar:/usr/local/tomcat/apache-tomcat-7.0.53/bin/tomcat-juli.jar -Dcatalina.base=/usr/local/tomcat/apache-tomcat-7.0.53 -Dcatalina.home=/usr/local/tomcat/apache-tomcat-7.0.53 -Djava.io.tmpdir=/usr/local/tomcat/apache-tomcat-7.0.53/temp org.apache.catalina.startup.Bootstrap start

onepiece  1824  1472  0 09:40 pts/0    00:00:00 grep --color=auto tomcat1744

1774便是

sudo kill -9 1744

进到tomcat目录的bin目录, 执行 ./startup.sh

启动tomcat

相关推荐