我正在尝试安装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>谢谢。
发布于 2016-08-04 17:36:46
在这样的文件中,您会错过数据库部分,因此您可能从未真正完成设置。
但是,您必须添加两个标志:
在openfire.xml <setup>true</setup>中
作为<jive>标记的子级
以及在数据库的ofProperty表中
INSERT INTO OFPROPERTY (NAME,PROPVALUE) VALUES ('setup','true');发布于 2016-08-05 01:35:30
答案是,您必须卸载Openfire,然后删除位于C:/ProgramFiles(x86)/中的Openfire文件夹,然后重新安装Openfire。
发布于 2019-01-25 18:00:19
如果Openfire成功运行,其安装过程将修改openfire.xml文件的内容。失败的最典型原因是文件权限问题。确保允许执行Openfire的用户读取和写入Openfire主文件夹下的所有文件。
https://stackoverflow.com/questions/38759233
复制相似问题