连接linux后进入需要查看的tomcat路径下的bin内,直接输入: sh version.sh 即可
[***@redhat-32bit bin]$ sh version.sh
Using CATALINA_BASE: /home/***/tomcat_***
Using CATALINA_HOME: /home/***/tomcat_***
Using CATALINA_TMPDIR: /home/***/tomcat_***/temp
Using JRE_HOME: /home/***/jre1.6.0_30
Server version: Apache Tomcat/6.0.7
Server built: Dec 24 2006 10:21:54
Server number: 6.0.7.0
OS Name: Linux
OS Version: 2.6.18-194.el5
Architecture: i386
JVM Version: 1.6.0_30-b12
JVM Vendor: Sun Microsystems Inc.
可从结果中看出,tomcat版本为6.0.7.0,jdk版本为1.6.0_30
———-