博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
LINUX下如何查看tomcat运行状态,判断其是否启动
阅读量:6540 次
发布时间:2019-06-24

本文共 2537 字,大约阅读时间需要 8 分钟。

 

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

 

[root@iZ25b4ffkfaZ 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是否启动。 

[root@iZ25b4ffkfaZ 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的环境变量

[root@iZ25b4ffkfaZ 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

 

转载于:https://www.cnblogs.com/kenshinobiy/p/4797441.html

你可能感兴趣的文章
一个超棒的jQuery通知栏插件 - jBar
查看>>
分享17个漂亮的电子商务网站
查看>>
JavaScript实用手册
查看>>
dpkg参数
查看>>
AS3!INT
查看>>
简述思科、华为交换机型号字母代表的意思
查看>>
女神拒绝他可以不用分号
查看>>
memcache--mysql测试
查看>>
拷贝构造函数、拷贝函数、析构函数
查看>>
实战CGLib系列之proxy篇(一):方法拦截MethodInterceptor
查看>>
php 字符串截取
查看>>
ttcn-3
查看>>
00.java虚拟机的基本结构概念
查看>>
深入浅出 ES6:ES6 与 Babel - Broccoli 的联用
查看>>
ThreadLocal使用出现的问题
查看>>
openwrt 常用命令
查看>>
Node.js + Express 4.x + MongoDB 构建登录注册(二)
查看>>
关于十六进制和八进制负数的问题
查看>>
连接池并发的实现原理
查看>>
创建Pch预编译文件
查看>>