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.
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.
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/.
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 ;).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With