How to view Tomcat running status under Linux to determine if it starts

Source: Internet
Author: User

1. View the Tomcat boot log. ${catalina_home}\logs

[Email protected] logs]# tail-f catalina.out
Sep 11:50:00 AM org.apache.catalina.startup.HostConfig checkresources
info:undeploying context [/examples]
Sep 11:50:00 AM org.apache.catalina.startup.HostConfig deploydirectory
Info:deploying Web application directory Examples-bak
Sep 11:50:00 AM org.apache.catalina.startup.HostConfig deploydirectory
Info:deploying Web application directory Docs-bak
Sep 11:50:33 AM org.apache.catalina.startup.HostConfig checkresources
info:undeploying context []
Sep 11:50:34 AM org.apache.catalina.startup.HostConfig deploydirectory
Info:deploying Web application directory Root-bak

Jfinal Action Report--------2015-09-10 12:02:46------------------------------
Controller:demo. Hellocontroller. (hellocontroller.java:1)
Method:index
--------------------------------------------------------------------------------


2, using the Tomcat Default management tool (if used)
${web_location}/manager/html


3,netstat look at the port of the Tomcat service to see if Tomcat is started.

[Email protected] bin]# Netstat-na | grep 80
TCP 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
TCP 0 0 127.0.0.1:8005 0.0.0.0:* LISTEN
TCP 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN
TCP 0 0 101.200.90.203:50137 140.205.140.205:80 established

Note: View Tomcat's environment variables

[Email protected] bin]#./catalina.sh
Using catalina_base:/usr/local/tomcat/apache-tomcat-6.0.44
Using Catalina_home:/usr/local/tomcat/apache-tomcat-6.0.44
Using Catalina_tmpdir:/usr/local/tomcat/apache-tomcat-6.0.44/temp
Using Jre_home:/usr/local/java/jdk1.7.0_79/jre
Using CLASSPATH:/usr/local/tomcat/apache-tomcat-6.0.44/bin/bootstrap.jar
Usage:catalina.sh (Commands ...)
Commands
Debug Start Catalina in a debugger
Debug-security Debug Catalina with a security manager
JPDA start start Catalina under JPDA debugger
Run Start Catalina in the current window
Run-security Start in the current window with security Manager
Start start Catalina in a separate window
Start-security Start in a separate windows with Security Manager
Stop Stop Catalina, waiting up to 5 seconds for the process to end
Stop n Stop Catalina, waiting up to n seconds for the process to end
Stop-force Stop Catalina, wait up to 5 seconds and then use Kill-kill if still running
Stop N-force stop Catalina, wait up to n seconds and then use Kill-kill if still running
Version what version of Tomcat is you running?
Note:waiting for the process-to-end and use of the-force option require-$CATALINA _pid is defined

How to view Tomcat running status under Linux to determine if it starts

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.