linux下查看tomcat和jdk版本号、重启tomcat、查看tomcat日志的命令

源:http://0609xiaohua.iteye.com/blog/1343223
评:
1.linux下查看tomcat和jdk版本号的命令:
这个需要进入到bin目录下面
# ./version.sh
Using CATALINA_BASE: /usr/local/tomcat6
Using CATALINA_HOME: /usr/local/tomcat6
Using CATALINA_TMPDIR: /usr/local/tomcat6/temp
Using JRE_HOME: /usr/java/jdk1.6.0_20
Using CLASSPATH: /usr/local/tomcat6/bin/bootstrap.jar
Server version: Apache Tomcat/6.0.32
Server built: February 2 2011 2003
Server number: 6.0.32.0
OS Name: Linux
OS Version: 2.6.18-194.el5
Architecture: i386
JVM Version: 1.6.0_20-b02
JVM Vendor: Sun Microsystems Inc.


2.重启tomcat的命令:
第一个,这个需要进入到bin目录下面
# ./startup.sh
第二个,service tomcat start


3、查看tomcat日志的命令:
tail -f /usr/local/tomcat/logs/catalina.out

你可能感兴趣的:(Tomcat)