由于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:
查看日志是否有报错,验证平台是否正常。