Startup of tomcat under Linux

Tomcat restart under Linux




In Linux system, restart Tomcat using the command operation!

First, enter the bin directory under Tomcat

cd /usr/local/tomcat/bin and

use the Tomcat shutdown command

./shutdown.sh

to see if Tomcat has been shut down with

ps -ef|grep java If

the following similar information is displayed, it means that Tomcat has not been shut down.



root 7010 1 0 Apr19 ? 00:30:13 /usr/local/java/bin/java -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties -Djava.awt.headless =true -Dfile.encoding=UTF-8 -server -Xms1024m -Xmx1024m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC -Djava.util. logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/usr/local/tomcat/endorsed -classpath /usr/local/tomcat/bin/bootstrap.jar -Dcatalina.base=/usr/local/ tomcat -Dcatalina.home=/usr/local/tomcat -Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap startCopy

code

*If you want to kill Tomcat directly, you can use kill command, kill the Tomcat process directly

kill -9 7010

and then continue to check whether Tomcat is closed

ps -ef|grep java

If the following information appears, it means that Tomcat has been closed

root 7010 1 0 Apr19 ? 00:30:30 [java] <defunct>

Finally, start Tomcat

.

An exception will be reported that the port is occupied.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326967926&siteId=291194637