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