tigase7.02升級8.0

  • 備份配置文件和數據庫mysql

    • 導出原來的數據庫(結構和數據)
    • 備份配置文件sql

      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以鏈接到數據庫。ui

    • 更新數據庫結構
      ./scripts/tigase.sh upgrade-schema etc/tigase.conf
      Mysql數據庫必須5.7以上版本
      成功以後,看到以下界面:code

      =============================================================================
          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
      
      =============================================================================
    • 啓動運行orm

      scripts/tigase.sh start etc/tigase.conf
  • 遇到的問題server

    • 升級後,新增了tig_user_credentials表,須要針對原來認證方式存儲用戶密碼,sha1或者plain.,不然會出現沒法登錄的問題。
    • 存儲聊天記錄遇到的問題ip

      1. 先配置聊天記錄it

        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'
          }
          }

        亂碼問題,修改以下便可解決。io

        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
          }
相關文章
相關標籤/搜索