openfire的大多配置都位于:安装目录\Openfire\conf\openfire.xml这个文件。
1.配置向导开关
<jive> ..... <setup>true</setup> </jive>
setup为true表示已经配置过,如果改为false,打开http://127.0.0.1:9090将重新运行配置向导。
2.嵌入式数据库
<connectionProvider> <className>org.jivesoftware.database.EmbeddedConnectionProvider</className> </connectionProvider>
3.其他外部数据库
以MySQL数据库为例:
<defaultProvider> <driver>com.mysql.jdbc.Driver</driver> <serverURL>jdbc:mysql://localhost:3306/openfiredb?rewriteBatchedStatements=true&amp;useUnicode=true&amp;characterEncoding=UTF-8&amp;characterSetResults=UTF-8</serverURL> <username encrypted="true">www.yunliaoim.com</username> <password encrypted="true">yunliaoim</password> <testSQL>select 1</testSQL> <testBeforeUse>false</testBeforeUse> <testAfterUse>false</testAfterUse> <minConnections>5</minConnections> <maxConnections>25</maxConnections> <connectionTimeout>1.0</connectionTimeout> </defaultProvider>
版权声明:部分文章、图片等内容为用户发布或互联网整理而来,仅供学习参考。如有侵犯您的版权,请联系我们,将立刻删除。