Sometime we need to find out what is our Tomcat version installed in our server. We can check Tomcat version with following command sh version.sh, this version.sh is located at tomcat bin folder
mkyong@mkyong-desktop:/usr/share/tomcat5.5/bin$ sh version.sh Using CATALINA_BASE: /usr/share/tomcat5.5 Using CATALINA_HOME: /usr/share/tomcat5.5 Using CATALINA_TMPDIR: /usr/share/tomcat5.5/temp Using JRE_HOME: /usr/lib/jvm/java-6-sun Server version: Apache Tomcat/5.5 Server built: Jan 3 2008 11:42:45 Server number: 184.108.40.206 OS Name: Linux OS Version: 2.6.24-19-generic Architecture: i386 JVM Version: 1.6.0_06-b02 JVM Vendor: Sun Microsystems Inc. mkyong@mkyong-desktop:/usr/share/tomcat5.5/bin$
Got it, Tomcat version is 220.127.116.11.
P.S Tomcat version.sh required we set up JAVA_HOME properly, please issue following command if hanvt set up JAVA_HOME environment.
export JAVA_HOME=<java jdk path>