Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the command to restart the Tomcat server in Linux

Shulou Source: shulou.com Published: 2022-06-02 00:24:43 09月28日 Update

The content of this article mainly focuses on what is the command to restart the Tomcat server in Linux. The content of the article is clear and clear. It is very suitable for beginners to learn and is worth reading. Interested friends can follow the editor to read together. I hope you can get something through this article!

Tomcat server is an open source Web application server, which is a lightweight application server. It is used by many people and is the first choice for developing and debugging JSP. Let's teach you the service commands of Tomcat.

Under the Linux system, restart Tomcat using the command operation!

First, go to the bin directory under Tomcat

Cd / usr/local/tomcat/bin

Use the Tomcat close command

. / shutdown.sh

Check to see if Tomcat closes

Ps-ef | grep java

If the following similar message is displayed, Tomcat has not been turned off

Root 12976 10 Sep01? 00:10:22 / usr/java/jdk1.7.0_80/bin/java-Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager-Djdk.tls.ephemeralDHKeySize=2048-Djava.endorsed.dirs=/usr/local/tomcat/endorsed-classpath / usr/local/tomcat/bin/bootstrap.jar:/usr/local/tomcat/bin/tomcat-juli.jar-Dcatalina.base=/usr/local / tomcat-Dcatalina.home=/usr/local/tomcat-Djava.io.tmpdir=/usr/local/tomcat/temp org.apache.catalina.startup.Bootstrap start

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

Kill-9 12976

Then continue to see if Tomcat is closed

Ps-ef | grep java

If the following message appears, Tomcat has been shut down

Root 19955 19757 0 17:48 pts/0 00:00:00 grep java

Start Tomcat

. / startup.sh

Check the tomcat log (remember to switch paths)

Tail-f catalina.out

Thank you for your reading. I believe you have a certain understanding of "what is the command to restart Tomcat server in Linux". Go ahead and practice it. If you want to know more about it, you can follow the website! The editor will continue to bring you better articles!

Tags: Commands services servers information content articles articles applications similarities interests novices logs easy to understand more friends organization directories knowledge knowledge points systems Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Technology Linux NVidia Microsoft