Tomcat漏洞升级
由于8.5.0至8.5.61存在安全漏洞,根据官方建议:现将版本升级到apache-tomcat-8.5.63
旧版本:8.5.61
新版本:8.5.63
步骤1:
#vim /users/ucWebchat2CustomerServer/apache-tomcat-8.5.63/bin/catalina.sh
export JAVA_HOME=/users/ucWebchat2CustomerServer/jdk1.8.0_77
export JRE_HOME=/users/ucWebchat2CustomerServer/jdk1.8.0_77/jre
export CATALINA_HOME=/users/ucWebchat2CustomerServer/apache-tomcat-8.5.63
export CATALINA_BASE=/users/ucWebchat2CustomerServer/apache-tomcat-8.5.63
export CATALINA_TMPDIR=/users/ucWebchat2CustomerServer/apache-tomcat-8.5.63/temp
CATALINA_PID=/var/run/ucWebchat2CustomerServer.pid
步骤2:
#cp /users/ucWebchat2CustomerServer/apache-tomcat-8.5.61/conf/server.xml /users/ucWebchat2CustomerServer/apache-tomcat-8.5.63/conf/server.xml
步骤3:
War包迁移,将旧tomcat/webapps目录下war包复制到新tomcat/webapps目录下
1、删除新tomcat/webapps目录下的所有文件(没有则不用管).
docs examples host-manager manager ROOT
#cd /users/ucWebchat2CustomerServer/apache-tomcat-8.5.63/webapps
#rm -rf docs examples host-manager manager ROOT
2、迁移war包
#cd /users/ucWebchat2CustomerServer/apache-tomcat-8.5.61/webapps
#cp *.war /users/ucWebchat2CustomerServer/apache-tomcat-8.5.63/webapps
#cd /users/ucWebchat2CustomerServer/apache-tomcat-8.5.63/webapps
#ll #查看
步骤4:
停用旧的tomcat版本,启动新的tomcat版本
cd /users/ucWebchat2CustomerServer/apache-tomcat-8.5.61/
./bin/shutdown.sh
ps -ef | grep ucWebchat2CustomerServer
cd /users/ucWebchat2CustomerServer/apache-tomcat-8.5.63/
./bin/startup.sh
步骤5:
查看日志是否有报错,验证平台是否正常。
出处:https://www.cnblogs.com/syxk
^_^如果觉得这篇文章对你有小小的帮助的话,记得在右下角点个“推荐”哦,您的“推荐” 将是我最大的写作动力^_^。
本文版权归作者所有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文链接,否则保留追究法律责任的权利。