1. 进入tomcat lib目录
cd /usr/local/tomcat7/lib
2. 解压catalina.jar
jar xvf catalina.jar
3. 修改ServerInfo.properteis文件
vi org/apache/catalina/util/ServerInfo.properties 内容: server.info=Apache Tomcat server.number= server.built=Jul 2 2013 08:57:41
4. 将ServerInfo.properties打入jar包
jar uvf catalina.jar org/apache/catalina/util/ServerInfo.properties
5. 重启tomcat.
时间: 2024-10-13 06:54:43