Linux Server Tomcat environment deployment error restart

Source: Internet
Author: User
Tags tomcat server

There is no such situation in reality yet, so let yourself mock it: First find the Tomcat process, command: ps-ef |grep Tomcat

[email protected]:/opt/android-sdk/sdk/#PS-ef |grepTomcatroot3071 1 0May 26? .: the: -/usr/lib/jvm/java-8-oracle/bin/java-djava.util.logging.config.file=/root/apache-tomcat-8.5. One/conf/logging.properties-djava.util.logging.manager=org.apache.juli.classloade
Rlogmanager-djdk.tls.ephemeraldhkeysize=2048-djava.protocol.handler.pkgs=org.apache.catalina.webresources-classpath/root/apache-tomcat-8.5. One/bin/bootstrap.jar:/root/apache-tomcat-8.5. One/bin/tomcat-juli.jar
-dcatalina.base=/root/apache-tomcat-8.5. One-dcatalina.home=/root/apache-tomcat-8.5. One-djava.io.tmpdir=/root/apache-tomCat-8.5. One/temp Org.apache.catalina.startup.Bootstrap startroot12844 12831 0 Ten: -pts/7 xx:xx:xx grepTomcatroot14951 1 0April 14? A: -:Geneva/usr/lib/jvm/java-8-oracle/bin/java-djava.util.logging.config.file=/root/apache-tomcat-bi/conf/logging.properties-djava.util.logging.manager=org.apache.juli.classloaderlog Manager-djdk.tls.ephemeraldhkeysize=2048
-djava.protocol.handler.pkgs=org.apache.catalina.webresources-classpath/root/apache-tomcat-bi/bin/ Bootstrap.jar:/root/apache-tomcat-bi/bin/tomcat-juli.jar-dcatalina.base=/root/apache-tomcat-bi-dcatalina.home= /root/apache-tomcat-bi-djava.io.tmpdir=/root/apache-tomcat-bi/temp org.apache.catalina.startup.Bootstrap Start Start

You can see that there are two tomcat processes, the process numbers are 3071 and 14951, we kill process 14951 here, the command: Kill-s 9 14951, and then on the front end of the page to invoke the relevant interface will display the following:

This means that we have succeeded in killing the process!

Next reboot the Tomcat process, CD to the file bin directory of the kill Tomcat process, and then start the command:./startup.sh

[Email protected]:~/apache-tomcat-bi/bin#./startup. SH Using catalina_base:    /root/apache-tomcat-biusing catalina_home:   /root/apache-tomcat-/root/apache-tomcat-bi/ tempusing jre_home:         /usr/lib/jvm/java-8-oracleusing CLASSPATH:       /root/apache-tomcat-bi/bin/bootstrap.jar:/ root/apache-tomcat-bi/bin/tomcat-Juli.jartomcat started.

As you can see, the Tomcat server started successfully!

Linux Server Tomcat environment deployment error restart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.