检查Tomcat 7版本linux [英] Check Tomcat 7 Version linux
本文介绍了检查Tomcat 7版本linux的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何检查RHEL上安装的tomcat 7的版本?我查看了bin目录,但找不到version.sh.
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.
推荐答案
您可以使用以下脚本发布jsp:
You can publish a jsp with the following scriptlet:
<%= application.getServerInfo() %>
或使用grep catalina.out 表示以下行:
Or grep catalina.out for a line like:
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
或查看 lib/catalina.jar 中的文件 org/apache/catalina/util/ServerInfo.properties
.
只给您3个选择;).
这篇关于检查Tomcat 7版本linux的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文