如何查看linux中tomcat启动,LINUX下如何查看tomcat运行状态,判断其是否启动

1,查看Tomcat启动日志。 ${catalina_home}\logs

[[email protected] logs]# tail -f catalina.out

Sep 10, 2015 11:50:00 AM org.apache.catalina.startup.HostConfig checkResources

INFO: Undeploying context [/examples]

Sep 10, 2015 11:50:00 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory examples-bak

Sep 10, 2015 11:50:00 AM org.apache.catalina.startup.HostConfig deployDirectory

INFO: Deploying web application directory docs-bak

Sep 10, 2015 11:50:33 AM org.apache.catalina.startup.HostConfig checkResources

INFO: Undeploying context []

Sep 10, 2015 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,使用Tomcat默认的管理工具,(如果还使用的话)

${Web_location}/manager/html

3,netstat查看Tomcat服务的端口,看tomcat是否启动。

[[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

注:查看tomcat的环境变量

[[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 window 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 are you running?

Note: Waiting for the process to end and use of the -force option require that $CATALINA_PID is defined

原文:http://www.cnblogs.com/kenshinobiy/p/4797441.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值