Tomcat: How to find out running tomcat version

前端 未结 27 1775
臣服心动
臣服心动 2020-11-30 16:18

I\'m trying to get Appfuse + tomcat + jRebel working.

Appfuse by default uses Cargo to download tomcat (ver. 7.0.33) and deploy the application to it. I wish to use

相关标签:
27条回答
  • 2020-11-30 16:59

    For securing Tomcat from hackers, it's recommended that we try a few steps at hiding the tomcat version information. The OWASP project suggests a few steps. https://www.owasp.org/index.php/Securing_tomcat . If a tomcat installation is thus protected, then only 1 of the above answers will show the version of tomcat.
    i.e going through the $TOMCAT_HOME\RELEASE-NOTES file where the version number is clearly announced.

    I had one such protected server and only the RELEASE-NOTES file revealed the version of the tomcat. all other techniques failed to reveal the version info.

    0 讨论(0)
  • 2020-11-30 17:00

    Simply start tomcat and search for "Server version name" in catalina.logs and you will get version of your tomcat. For example:

    "Mar 07, 2019 11:25:40 AM org.apache.catalina.startup.VersionLoggerListener log INFO: Server version name: Apache Tomcat/9.0.16"

    0 讨论(0)
  • 2020-11-30 17:02

    This one command which you can check almost everything:

    java -cp tomcat/lib/catalina.jar org.apache.catalina.util.ServerInfo
    

    or

    tomcat/bin/catalina.sh version
    

    And the output looks like this

    Server version: Apache Tomcat/8.5.24
    Server built:   Nov 27 2017 13:05:30 UTC
    Server number:  8.5.24.0
    OS Name:        Linux
    OS Version:     4.4.0-137-generic
    Architecture:   amd64
    JVM Version:    1.8.0_131-b11
    JVM Vendor:     Oracle Corporation
    
    0 讨论(0)
  • 2020-11-30 17:06

    Open your tomcat home page (Usually localhost:8080)

    You will see something like this:

    0 讨论(0)
  • 2020-11-30 17:07

    Though this is not recent, I thought, my answer can still help others:

    cd tomcat/lib 
    java -cp catalina.jar org.apache.catalina.util.ServerInfo
    

    and that's it.

    Server version: Apache Tomcat/7.0.30
    Server built:   May 23 2013 02:54:10
    Server number:  7.0.30.0
    OS Name:        Linux
    OS Version:     3.13.0-36-generic
    Architecture:   amd64
    JVM Version:    1.7.0_65-b32
    JVM Vendor:     Oracle Corporation
    
    0 讨论(0)
  • 2020-11-30 17:07

    Enter 404.jsp or non-existent.jsp.

    Get Tomcat/JBoss version number at bottom of page.

    0 讨论(0)
提交回复
热议问题