EN
Bash - how to check tomcat version?
2
points
In this short article we are going to show how to check tomcat version in Linux.
Solution is quite simple: go to bin/
directory in tomcat installation path and call version.sh
script.
Simple steps:
- find tomcat installation directory with:
or callfind / -type d -name "tomcat*"
whereis tomcat8
replacing 8 with major version number, - go to
bin/
directory,
cd /path/to/tomcat/bin
, - run
./version.sh
, - find line started with
Server version:
.
Console example:
root@debian-server:~# find / -type d -name "tomcat*"
/etc/tomcat8
/var/cache/tomcat8
/var/lib/tomcat8
/var/log/tomcat8
/usr/share/tomcat8-root
/usr/share/doc/tomcat8-common
/usr/share/doc/tomcat8
/usr/share/tomcat8
/sys/fs/cgroup/pids/system.slice/tomcat8.service
/sys/fs/cgroup/devices/system.slice/tomcat8.service
/sys/fs/cgroup/systemd/system.slice/tomcat8.service
root@debian-server:~# cd /usr/share/tomcat8/bin
root@debian-server:/usr/share/tomcat8/bin# ./version.sh
Using CATALINA_BASE: /usr/share/tomcat8
Using CATALINA_HOME: /usr/share/tomcat8
Using CATALINA_TMPDIR: /usr/share/tomcat8/temp
Using JRE_HOME: /usr
Using CLASSPATH: /usr/share/tomcat8/bin/bootstrap.jar:/usr/share/tomcat8/bin/tomcat-juli.jar
Server version: Apache Tomcat/8.5.54 (Debian)
Server built: Apr 25 2020 15:01:31 UTC
Server number: 8.5.54.0
OS Name: Linux
OS Version: 4.9.0-11-amd64
Architecture: amd64
JVM Version: 1.8.0_252-8u252-b09-1~deb9u1-b09
JVM Vendor: Oracle Corporation