[达梦数据库]达梦数据实时同步管理平台DMHS升级
程序员文章站
2022-06-03 12:24:46
...
1 准备工作
1.1 初始环境记录
1.2 准备升级包
原始war包可能带有日期后缀,更改为manager.war。
1.3 查询路径
[[email protected] ~]# ps -ef | grep java
root 35001 334570 0 10:50 pts/3 00:00:00 grep java
root 678287 1 1 Feb08 ? 15:18:20 /usr/bin/java -Djava.util.logging.config.file=/dmdata/data2/hsem/apache-tomcat-7.0.91/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Dignore.endorsed.dirs= -classpath /dmdata/data2/hsem/apache-tomcat-7.0.91/bin/bootstrap.jar:/dmdata/data2/hsem/apache-tomcat-7.0.91/bin/tomcat-juli.jar -Dcatalina.base=/dmdata/data2/hsem/apache-tomcat-7.0.91 -Dcatalina.home=/dmdata/data2/hsem/apache-tomcat-7.0.91 -Djava.io.tmpdir=/dmdata/data2/hsem/apache-tomcat-7.0.91/temp org.apache.catalina.startup.Bootstrap start
[[email protected] ~]# cd /dmdata/data2/hsem/apache-tomcat-7.0.91/
2 升级
2.1 停止进程
[[email protected] apache-tomcat-7.0.91]# cd bin/
[[email protected] bin]# ./shutdown.sh
Using CATALINA_BASE: /dmdata/data2/hsem/apache-tomcat-7.0.91
Using CATALINA_HOME: /dmdata/data2/hsem/apache-tomcat-7.0.91
Using CATALINA_TMPDIR: /dmdata/data2/hsem/apache-tomcat-7.0.91/temp
Using JRE_HOME: /usr
Using CLASSPATH: /dmdata/data2/hsem/apache-tomcat-7.0.91/bin/bootstrap.jar:/dmdata/data2/hsem/apache-tomcat-7.0.91/bin/tomcat-juli.jar
#查看是否停止
[[email protected] bin]# ps -ef | grep java
root 38742 334570 0 11:03 pts/3 00:00:00 grep java
2.2 升级war包
[[email protected] bin]# cd ../webapps/
[[email protected] webapps]# rm –rf manager.war
mv manager manager20210315
#上传新war包
2.3 修改表结构
本次升级需要修改表结构,在中心端数据库里执行sql脚本即可。
2.4 启动进程
[[email protected] webapps]# cd ../bin/
[[email protected] bin]# ./startup.sh
Using CATALINA_BASE: /dmdata/data2/hsem/apache-tomcat-7.0.91
Using CATALINA_HOME: /dmdata/data2/hsem/apache-tomcat-7.0.91
Using CATALINA_TMPDIR: /dmdata/data2/hsem/apache-tomcat-7.0.91/temp
Using JRE_HOME: /usr
Using CLASSPATH: /dmdata/data2/hsem/apache-tomcat-7.0.91/bin/bootstrap.jar:/dmdata/data2/hsem/apache-tomcat-7.0.91/bin/tomcat-juli.jar
Tomcat started.
#查看日志
[[email protected] bin]# tail -100f ../logs/catalina.out
下一篇: 牛顿迭代法