微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

openfire.xml文件备忘

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>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。