特别提醒:升级6.1.110.0606patch包时,平台的JDK已经升级到jdk1.8,升级前后注意以下几点:
1、升级该版本前需手动更新JDK1.8,现提供windows64位、linux64位JDK1.8文件的下载链接:http://pan.baidu.com/s/1i51KuxB 密码:f7ou
2.升级前需手动修改根目录patch/下升级脚本upgrade.bat、upgrade.sh及patch/conf/下upgrade-auto.tpl文件,修改地方标记如下图:
upgrade.bat 修改标记如下图
upgrade.sh 修改标记如下图
upgrade-auto.tpl文件,仅PaaS的环境才需要修改,修改标记如下图
3.完成升级操作后,需手动修改启动脚本startup.bat、aws_startup.sh、catalina.bat(.sh)、httpd-startup.bat、httpd-startup.sh及关闭脚本httpd-shutdown.bat、httpd-shutdown.sh
startup.bat 修改标记如下图
aws_startup.sh 文件改动较大,现把修改后的原文件内容贴出
#!/bin/sh
# get into run script dir (resolve to absolute path)
SCRIPT_DIR=$(cd $(dirname $0) && pwd) # This dir is where this script live.
echo "SCRIPT_DIR:$SCRIPT_DIR"
cd $SCRIPT_DIR
#JVM Home
# ---------------------
export JAVA_HOME="../jdk1.8/"
#export JAVA_HOME="../jdk1.7/"
#Current OS LANG
#export LANG=zh_CN.GBK
#Adding JvmOptions
# ---------------------
JAVA_OPTS="-Dfile.encoding=utf-8 -Dsun.jnu.encoding=utf-8 -Duser.timezone=GMT+8 -Duser.language=zh -Duser.country=CN -Djava.net.preferIPv4Stack=true -Djava.util.logging.config.file=./lib/logging.properties -Djava.security.policy=./conf/java.policy -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../logs "
#JVM Version Options
# ---------------------
# 1.7 JAVA_OPTS="-server -Xmx2g -Xms2g -XX:PermSize=256m -XX:MaxPermSize=256m -XX:SurvivorRatio=16 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:MaxTenuringThreshold=15 -XX:+ExplicitGCInvokesConcurrent -XX:+DoEscapeAnalysis -XX:+CMSClassUnloadingEnabled -XX:+UseCMSCompactAtFullCollection $JAVA_OPTS "
# 1.8 JAVA_OPTS="-server -Xmx2g -Xms2g -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -XX:SurvivorRatio=16 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:MaxTenuringThreshold=15 -XX:+ExplicitGCInvokesConcurrent -XX:+DoEscapeAnalysis -XX:+CMSClassUnloadingEnabled $JAVA_OPTS "
# 虚拟机监控参数:"-Dcom.sun.management.jmxremote.port=9393 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
# Startup
# ---------------------
export JAVA_OPTS="-server -Xmx4g -Xms4g -XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=256m -XX:SurvivorRatio=16 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:MaxTenuringThreshold=15 -XX:+ExplicitGCInvokesConcurrent -XX:+DoEscapeAnalysis -XX:+CMSClassUnloadingEnabled $JAVA_OPTS "
${JAVA_HOME}/bin/java $JAVA_OPTS $* -jar ./bootstrap.jar -r -lib "./patch;./lib;./jdbc" StartUp
catalina.bat(.sh)
httpd-startup.bat 修改标记如下图
httpd-startup.sh 修改标记如下图
httpd-shutdown.bat 修改标记如下图
httpd-shutdown.sh 修改标记如下图
备注:如按照上面的操作完成后,启动服务报如下图中的错,请修改启动脚本startup.bat、aws_startup.sh中该参数值改为0-15之间