Tomcat/tomee Hidden Version number

Source: Internet
Author: User
Tags tomcat server apache tomcat

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.