共计 1759 个字符,预计需要花费 5 分钟才能阅读完成。
-
备份配置文件和数据库
-
- 导出原来的数据库(结构和数据)
-
备份配置文件
cp ../tigase-server7.02/etc/tigase.conf etc/ cp ../tigase-server7.02/etc/init.properties etc/
-
升级配置文件
执行配置文件./scripts/tigase.sh upgrade-config etc/tigase.conf
当出现如下画面时============================================================================= Configuration file etc/init.properties was converted to DSL format. Previous version of a configuration file was saved at etc/init.properties.old =============================================================================
配置文件
config.tdsl
以连接到数据库。
-
更新数据库结构
./scripts/tigase.sh upgrade-schema etc/tigase.conf
Mysql 数据库必须 5.7 以上版本
成功之后,看到如下界面:============================================================================= Schema upgrade finished Data source: default with uri jdbc:mysql://HOST/DATABASE?user=USERNAME&password=PASSWORD Checking connection to database ok Checking if database exists ok Loading schema: Tigase XMPP Server (Core), version: 8.0.0 ok Loading schema: Tigase Message Archiving Component, version: 1.3.0 ok Loading schema: Tigase MUC Component, version: 2.5.0 ok Loading schema: Tigase PubSub Component, version: 3.3.0 ok Adding XMPP admin accounts warning Message: Error: No admin users entered Post installation action ok =============================================================================
-
启动运行
scripts/tigase.sh start etc/tigase.conf
-
遇到的问题
- 升级后,新增了
tig_user_credentials
表,需要针对原来认证方式存储用户密码,sha1 或者 plain.,否则会出现无法登陆的问题。 -
存储聊天记录遇到的问题
-
先配置聊天记录
message-archive { archive-repo-uri = 'jdbc:mysql://localhost/tigasedb7?user=root&password=root', tags-support = true } sess-man { message-archive { default-store-method = 'message', required-store-method = 'body' } }
乱码问题,修改如下即可解决。
message-archive { archive-repo-uri = 'jdbc:mysql://localhost/tigasedb7?user=root&password=root&useUnicode=true&characterEncoding=UTF-8', tags-support = true }
群消息无法推送,收到 new room locked 消息体,设置配置文件
config.tdsl
muc {'muc-lock-new-room' = false}
-
- 升级后,新增了
正文完
发表至: java
2019-07-01