美文网首页
升级tomcat版本

升级tomcat版本

作者: iamChel | 来源:发表于2020-12-31 09:45 被阅读0次

升级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版本

      本文链接:https://www.haomeiwen.com/subject/zprloktx.html