【问题标题】:Openfire setup pageOpenfire 设置页面
【发布时间】:2016-08-04 05:40:06
【问题描述】:

我正在尝试安装 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>

谢谢。

【问题讨论】:

  • 在设置向导中,您是否至少成功完成了一次?因为您共享的 openfire.xml 中没有可见的数据库配置。
  • @shoaib-ahmad-gondal 这就是我已经多次完成设置向导(在浏览器中)的问题,我猜至少有 20 次或更多。
  • 尝试在 en 之后添加 true 作为 的直接子级,然后检查问题是否仍然存在。
  • @shoaib-ahmad-gondal 现在它给了我“数据库设置或配置错误”。

标签: openfire


【解决方案1】:

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

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

openfire.xml &lt;setup&gt;true&lt;/setup&gt;

作为&lt;jive&gt;标签的子标签

并在数据库的属性表中

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

【讨论】:

  • 但是如果是正常的Openfire,那么数据库和设置标签在设置完之后会在那里吗?
  • 是的,成功设置后,您将获得这两个值以及配置中的数据库部分。我打赌,你有 Oracle 数据库吗?
  • 如何包含 INSERT INTO OFPROPERTY (NAME,PROPVALUE) VALUES ('setup','true');在我的 Openfire.xml 中?谢谢。
  • 这必须是您真实数据库中的插入,而不是在 Openfire.xml 中
  • 我认为不,我没有,也没有 Oracle 数据库。
【解决方案2】:

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

【讨论】:

    【解决方案3】:

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

    【讨论】:

      猜你喜欢
      • 2015-08-06
      • 2016-07-30
      • 2011-07-01
      • 1970-01-01
      • 2015-12-05
      • 2015-05-18
      • 2016-01-01
      • 2021-11-01
      • 2015-11-27
      相关资源
      最近更新 更多