加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

openfire.xml文件备忘

发布时间:2020-12-16 09:39:21 所属栏目:百科 来源:网络整理
导读:1.openfire.xml文件 这个文件里面的内容(主要是数据库连接的配置)是配置安装完openfire后自动生成的,安装的过程中会输入数据库的连接等信息。文件内容如下: 注意:要记得加 characterEncoding=utf8,否则数据库存入的中文会乱码——???。 如安装完后

1.openfire.xml文件

这个文件里面的内容(主要是数据库连接的配置)是配置安装完openfire后自动生成的,安装的过程中会输入数据库的连接等信息。文件内容如下:

注意:要记得加characterEncoding=utf8,否则数据库存入的中文会乱码——???。

如安装完后不满意,报错或者忘记管理员密码,可去掉此配置文件中的这一句:<setup>true</setup> 再一次登录主界面就可以重新安装了。

<?xml version="1.0" encoding="UTF-8"?>

<!--
    This file stores bootstrap properties needed by Openfire.
    Property names must be in the format: "prop.name.is.blah=value"
    That will be stored as:
        <prop>
            <name>
                <is>
                    <blah>value</blah>
                </is>
            </name>
        </prop>

    Most properties are stored in the Openfire database. A
    property viewer and editor is included in the admin console.
-->
<!-- root element,all properties must be under this element -->
<jive> 
  <adminConsole> 
    <!-- Disable either port by setting the value to -1 -->  
    <port>9090</port>  
    <securePort>9091</securePort> 
  </adminConsole>  
  <locale>en</locale>  
  <!-- Network settings. By default,Openfire will bind to all network interfaces.
      Alternatively,you can specify a specific network interfaces that the server
      will listen on. For example,127.0.0.1. This setting is generally only useful
       on multi-homed servers. -->  
  <!--
    <network>
        <interface></interface>
    </network>
    -->  
  <connectionProvider> 
    <className>org.jivesoftware.database.DefaultConnectionProvider</className> 
  </connectionProvider>  
  <database> 
    <defaultProvider> 
      <driver>com.mysql.jdbc.Driver</driver>  
      <serverURL>jdbc:mysql://127.0.0.1:3306/openfire?rewriteBatchedStatements=true&characterEncoding=utf8</serverURL>  
      <username encrypted="true">cfb826b8af8bf75cde8a4214ed1d9e152d4220814e8e513d</username>  
      <password encrypted="true">d35e2a08f9edd38581db042d91d12eee</password>  
      <testSQL>select 1</testSQL>  
      <testBeforeUse>false</testBeforeUse>  
      <testAfterUse>false</testAfterUse>  
      <minConnections>5</minConnections>  
      <maxConnections>25</maxConnections>  
      <connectionTimeout>1.0</connectionTimeout> 
    </defaultProvider> 
  </database>  
  <setup>true</setup> 
</jive>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读