Home > Article > Operation and Maintenance > 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
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/
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!