升级tomcat版本

Posted 格格巫 MMQ!!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了升级tomcat版本相关的知识,希望对你有一定的参考价值。

升级tomcat版本
各版本tomcat下载地址:http://archive.apache.org/dist/tomcat/

小版本升级
停止旧版本tomcat

[root@localhost ~]# /root/apache-tomcat-8.5.56/bin/shutdown.sh
Using CATALINA_BASE: /root/apache-tomcat-8.5.56
Using CATALINA_HOME: /root/apache-tomcat-8.5.56
Using CATALINA_TMPDIR: /root/apache-tomcat-8.5.56/temp
Using JRE_HOME: /usr
Using CLASSPATH: /root/apache-tomcat-8.5.56/bin/bootstrap.jar:/root/apache-tomcat-8.5.56/bin/tomcat-juli.jar
备份旧lib文件

[root@localhost ~]# cp -rp /root/apache-tomcat-8.5.56 /root/apache-tomcat-8.5.56_20201231
[root@localhost ~]# mv /root/apache-tomcat-8.5.56/lib /root/apache-tomcat-8.5.56/lib_apache-tomcat-8.5.56_20201231
解压新版本tomcat并复制新版本的lib目录到旧版本安装目录下

[root@localhost ~]# tar -zxvf apache-tomcat-8.5.61.tar.gz
[root@localhost apache-tomcat-8.5.56]# cp -r apache-tomcat-8.5.61/lib /root/apache-tomcat-8.5.56/
启动tomcat升级成功

[root@localhost ~]# /root/apache-tomcat-8.5.56/bin/startup.sh
Using CATALINA_BASE: /root/apache-tomcat-8.5.56
Using CATALINA_HOME: /root/apache-tomcat-8.5.56
Using CATALINA_TMPDIR: /root/apache-tomcat-8.5.56/temp
Using JRE_HOME: /usr
Using CLASSPATH: /root/apache-tomcat-8.5.56/bin/bootstrap.jar:/root/apache-tomcat-8.5.56/bin/tomcat-juli.jar
Tomcat started.
大版本升级
停止旧版本tomcat

[root@localhost ~]# /root/apache-tomcat-8.0.36/bin/shutdown.sh
Using CATALINA_BASE: /root/apache-tomcat-8.0.36
Using CATALINA_HOME: /root/apache-tomcat-8.0.36
Using CATALINA_TMPDIR: /root/apache-tomcat-8.0.36/temp
Using JRE_HOME: /usr
Using CLASSPATH: /root/apache-tomcat-8.0.36/bin/bootstrap.jar:/root/apache-tomcat-8.0.36/bin/tomcat-juli.jar
备份旧版本lib文件和bin文件

[root@localhost ~]# cp -rp /root/apache-tomcat-8.0.36 /root/apache-tomcat-8.0.36_20201231
[root@localhost ~]# cp -rp /root/apache-tomcat-8.0.36/lib /root/apache-tomcat-8.0.36/lib_apache-tomcat-8.0.36_20201231
[root@localhost ~]# cp -rp /root/apache-tomcat-8.0.36/bin /root/apache-tomcat-8.0.36/bin_apache-tomcat-8.0.36_20201231
解压新版本tomcat并复制新版本的lib目录和bin目录文件到旧版本安装目录下

[root@localhost ~]# cp -rp /root/apache-tomcat-8.5.61/bin /root/apache-tomcat-8.0.36/
[root@localhost ~]# cp -rp /root/apache-tomcat-8.5.61/lib /root/apache-tomcat-8.0.36/
启动tomcat升级成功

[root@localhost ~]# /root/apache-tomcat-8.0.36/bin/startup.sh
Using CATALINA_BASE: /root/apache-tomcat-8.0.36
Using CATALINA_HOME: /root/apache-tomcat-8.0.36
Using CATALINA_TMPDIR: /root/apache-tomcat-8.0.36/temp
Using JRE_HOME: /usr
Using CLASSPATH: /root/apache-tomcat-8.0.36/bin/bootstrap.jar:/root/apache-tomcat-8.0.36/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Tomcat started.

以上是关于升级tomcat版本的主要内容,如果未能解决你的问题,请参考以下文章

tomcat版本升级

tomcat升级,tomcat窗体改名,一台电脑安装多版本JDK

Tomcat升级版本出现400问题

Tomcat版本升级步骤

不同版本的tomcat下载路径

Tomcat 发生"重大"漏洞,影响多个版本,升级升级!