openfire.xml文件备忘

前端之家收集整理的这篇文章主要介绍了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>

猜你在找的XML相关文章