Knowledge about tomcat and tomcat

Source: Internet
Author: User

Knowledge about tomcat and tomcat

1. Hide tomcat version:

① Execute the command: cd/usr/local/tomcat_web/lib/& ll. jar to decompress the package (it is best to back up the package in advance) ② execute the command: unzip catalina. jar at this time will be more META-INF and org two directories, find org/apache/catalina/util/ServerInfo. edit properties file ③ run the command: vi org/apache/catalina/util/ServerInfo. properties # server.info = Apache Tomcat/7.0.54
Server.info = Apache Tomcat
# Server. number = 7.0.54.0
Server. number = 0.0.0.0: Save the modified result and compress the modified information back to the jar package. ④ run the command: jar uvf catalina. jar org/apache/catalina/util/ServerInfo. properties Delete the decompressed file ⑤ run the command: rm-rf org/META-INF/finally restart tomcat 2. View tomcat version:/usr/local/tomcat_web/bin/version. sh

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.