Check Tomcat 7 Version linux

跟風遠走 提交于 2021-02-20 11:19:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!