Tomcat本身提供了查看版本的脚本命令:version
就在Tomcat的安装目录的bin子目录下,有两个文件:
· version.bat -- Windows下的批处理脚本
· version.sh -- Linux下的Shell脚本
Ubuntu 12.04查看Tomcat版本号的命令为:
1 2 3 |
$ cd /usr/share/tomcat7/bin $ ./version.sh |
输出的信息如下:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Using CATALINA_BASE: /usr/share/tomcat7 Using CATALINA_HOME: /usr/share/tomcat7 Using CATALINA_TMPDIR: /usr/share/tomcat7/temp Using JRE_HOME: /usr Using CLASSPATH: /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar Server version: Apache Tomcat/7.0.26 Server built: Apr 1 2013 08:32:04 Server number: 7.0.26.0 OS Name: Linux OS Version: 3.2.0-58-generic Architecture: amd64 JVM Version: 1.7.0_91-b02 JVM Vendor: Oracle Corporation |