linux-tomcat version upgrade

Tomcat8.0.15 because there is CVE 2020-1938 Tomcat file read Inclusion Vulnerabilities

So tell 8.0.15 version upgrade to version 8.5.51

 

With linux-based

 

Download Link

Linux :

http://archive.apache.org/dist/tomcat/tomcat-8/v8.5.51/bin/apache-tomcat-8.5.51.tar.gz

 

win

http://archive.apache.org/dist/tomcat/tomcat-8/v8.5.51/bin/apache-tomcat-8.5.51.zip

 

  1. The end of the original tomcat

ps -ef |grep tomcat

kill -9 2775

 

 

 

ps -ef | grep tomcat tomcat has confirmed closed

 

  1. Install the new original tomcat tomcat installation directory defaults to / usr / local / tomcat

tar -zxvf apache-tomcat-8.5.51.tar.gz

 

  1. The old tomcat configuration file TOMCAT_HOME / conf / server.xml server.xml replace the new version of tomcat, avoid reconfiguring content

cp /usr/local/tomcot/apache-tomcat-8.0.15/conf/server.xml /usr/local/tomcot/apache-tomcat-8.5.51/conf/

 

 

  1. Copy the project to the new project directory tomcat

The default project directory path: /usr/local/tomcot/apache-tomcat-8.0.15/webapps

docs, examples, host-manager, manager, ROOT is not moving, which is the default tomcat project

 

  1. Start tomcat

cd /usr/local/tomcot/apache-tomcat-8.5.51/bin/

./startup.sh

Published 12 original articles · won praise 19 · views 10000 +

Guess you like

Origin blog.csdn.net/skystephens/article/details/104782317