Home  >  Article  >  Operation and Maintenance  >  How to check tomcat version in linux

How to check tomcat version in linux

angryTom
angryTomOriginal
2019-07-23 15:42:0756674browse

How to check tomcat version in linux

Recommended tutorial: Linux tutorial

1. Why To view tomcat version information

1: Customer or developer request

2: Website migration or environment replication

3: Vulnerability review or penetration testing

2. How to check tomcat version information

1: Use the curl command to collect web page information and filter out "Apache Tomcat" can

How to check tomcat version in linux

Command: curl Tomcat_ip_addr:port | grep "Apache Tomcat"

Advantages: The most commonly used method, you can view it without entering the background, it is simple and feasible.

Risk: Some companies will hide version information or the name of tomcat, which is misleading.

2: Enter the background, find the bin/ directory under the tomcat package, and execute the version.sh file. The corresponding Server number is the version information corresponding to tomcat

For example: my tomcat package is under /usr/local/

How to check tomcat version in linux

Command: /usr/local/tomcat/bin/version.sh

##Advantages: Can accurately find out the version information.

Insufficiency: Must enter the background and obtain executable permissions.

The above is the detailed content of How to check tomcat version in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn