Openfire设置页面

时间:2016-08-04 05:40:07

标签: openfire

我正在尝试安装Openfire 4.0.2。我的问题是,重新启动Openfire并按管理控制台后,我总是看到设置页面。我该怎么做才能解决它?

这是我的openfire.xml文件

<?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>7090</port>
        <securePort>7091</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>127.0.0.1</interface>
    </network>
    -->

    <!-- SPDY  Protocol is npn.
        (note: npn does not work with Java 8)
        add -Xbootclasspath/p:/OPENFIRE_HOME/lib/npn-boot.jar to .vmoptions file    -->

    <!--
    <spdy>
        <protocol>npn</protocol>
    </spdy>
    -->

    <!-- XEP-0198 properties -->
    <stream>
        <management>
            <!-- Whether stream management is offered to clients by server. -->
            <active>true</active>
            <!-- Number of stanzas sent to client before a stream management
                 acknowledgement request is made. -->
            <requestFrequency>5</requestFrequency>
        </management>
    </stream>

</jive>

谢谢。

3 个答案:

答案 0 :(得分:1)

在这样的文件中你会错过数据库部分,所以可能你从来没有真正完成设置。

但是必须添加2个标志:

openfire.xml <setup>true</setup>

作为<jive>代码

的孩子

和inProperty数据库表

INSERT INTO OFPROPERTY (NAME,PROPVALUE) VALUES ('setup','true');

答案 1 :(得分:0)

答案是,您必须卸载Openfire并删除位于C:/ ProgramFiles(x86)/中的Openfire文件夹并重新安装Openfire。

答案 2 :(得分:0)

如果Openfire的安装过程成功运行,它将修改openfire.xml文件的内容。失败的最典型原因是文件权限问题。确保允许执行Openfire的用户读取和写入Openfire主文件夹下的所有文件。