首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Openfire设置页面

Openfire设置页面
EN

Stack Overflow用户
提问于 2016-08-04 13:40:07
回答 3查看 536关注 0票数 0

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

这是我的openfire.xml文件

代码语言:javascript
复制
<?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>

谢谢。

EN

回答 3

Stack Overflow用户

发布于 2016-08-04 17:36:46

在这样的文件中,您会错过数据库部分,因此您可能从未真正完成设置。

但是,您必须添加两个标志:

openfire.xml <setup>true</setup>

作为<jive>标记的子级

以及在数据库的ofProperty表中

代码语言:javascript
复制
INSERT INTO OFPROPERTY (NAME,PROPVALUE) VALUES ('setup','true');
票数 1
EN

Stack Overflow用户

发布于 2016-08-05 01:35:30

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

票数 0
EN

Stack Overflow用户

发布于 2019-01-25 18:00:19

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/38759233

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档