sometimes a lot of information for the server installation can not be revealed, which includes the Tomcat server version number.
before you modify the following:
650) this.width=650; "src=" Http://www.cnop.net/uploadfile/2016/0810/20160810045938703.png "style=" border:none; Vertical-align:middle;color:rgb (83,83,83); font-family: ' Microsoft Yahei ', ' Microsoft Ya Black ', Arial, ' Lucida Grande ', Tahoma, Sans-serif;font-size:18px;line-height:36px;white-space:normal;width:349px;height:185px;background-color:rgb ( 255,255,255); "/>
1. Enter the Tomcat installation path (illustrated here as an example of/usr/local/tomcat):
Cd/usr/local/tomcat/lib
Unzip Catalina.jar
CD Org/apache/catalina/util
Vim Serverinfo.properties
2. Locate the bottom, similar to the below information (the version differs from the following information):
Server.info=apache tomcat/7.0.52 (Ubuntu)
server.number=7.0.52.0
Server.built=jun 01:59:37
Modify the following, and save:
Server.info=apache Tomcat
server.number=0.0.0.0
Server.built=jun 01:59:37
Compress the modified information back into the jar package:
cd /usr/local/tomcat/lib
Jar UVF Catalina.jar org/apache/catalina/util/serverinfo.properties
3. Restart Tomcat::
Service Tomcat Restart
4. Test:
The following changes are followed:
650) this.width=650; "src=" Http://www.cnop.net/uploadfile/2016/0810/20160810050027131.png "style=" border:none; vertical-align:middle;width:625px;height:303px; "/>
If you have any questions, you can leave a message or my personal website.
Http://www.cnop.net/html/web/tomcat/2016/0810/4869.html
This article is from "operation and maintenance enthusiasts ..." Blog, be sure to keep this source http://sjby365.blog.51cto.com/4609539/1836597
Tomcat/tomee hidden Version number