Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check Tomcat 7 Version linux

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.

like image 471
DD. Avatar asked Feb 24 '13 23:02

DD.


People also ask

How do I know if Tomcat is installed Linux?

A simple way to see if Tomcat is running is to check if there is a service listening on TCP port 8080 with the netstat command. This will, of course, only work if you are running Tomcat on the port you specify (its default port of 8080, for example) and not running any other service on that port.

Where is Tomcat installed on Linux?

The default directory for Tomcat files will be in /usr/local/tomcat9, you can view the configuration files inside the conf folder, the main page that you have seen above, when you open your website on the 8080 port is in /usr/local/tomcat9/webapps/ROOT/.


1 Answers

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 ;).

like image 69
Anthony Accioly Avatar answered Oct 08 '22 00:10

Anthony Accioly