问题
How do I check the version of tomcat 7 that is installed on RHEL? I looked in the bin directory and cannot find version.sh.
回答1:
You can publish a jsp with the following scriptlet:
<%= application.getServerInfo() %>
Or grep catalina.out for a line like:
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Or take a look at the file org/apache/catalina/util/ServerInfo.properties
inside lib/catalina.jar.
Just to give you 3 options ;).
回答2:
Try this to see the names and versions of any Tomcat RPM packages that are installed:
$ sudo rpm -qa | grep tomcat
来源:https://stackoverflow.com/questions/15058052/check-tomcat-7-version-linux