openfire单节点部署

1 openfire安装
openfire下载地址

tar -zxvf openfire_4_0_2.tar.gz 

vi /etc/profile,添加以下代码,注意source /etc/profile使之生效

export OPENFIRE_HOME=/application/openfire
export PATH=$PATH:$OPENFIRE_HOME/bin
openfire start #启动openfire
openfire stop #关闭openfire

2 语言配置
选择中文简体
语言设置
3 服务器设置
openfire控制台端口默认为为9090,https的端口为9091.
blowfish(c、c++、java版本)DES,AES,BlowFish算法的运算速度比较
BlowFish和AES从上面的参考链接来看,数据量小的话时间上差不多。这里选用的是BlowFish,用于对openfire数据库用户名、密码进行加密
服务器设置
4 数据库设置
选择“标准数据库连接”
数据库设置
数据库是用mysql,更改数据库URL,连接数量使用默认配置。
数据链接
选择初始设置
数据初始化
设置admin用户的密码
管理员账号
5 openfire.xml
openfire.xml位于${OPENFIRE_HOME}/conf目录下面,经过上述配置后,配置信息会写入到这个文件中。另外配置信息在数据库中ofproperty表也可以找到。

<?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>9090</port>  
    <securePort>9091</securePort> 
  </adminConsole>  
  <locale>zh_CN</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></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>  
  <connectionProvider>
    <className>org.jivesoftware.database.DefaultConnectionProvider</className>
  </connectionProvider> 
  <database>
    <defaultProvider>
      <driver>com.mysql.jdbc.Driver</driver> 
      <serverURL>jdbc:mysql://192.168.5.127:3306/dzm_openfire?rewriteBatchedStatements=true</serverURL> 
      <username encrypted="true">f694c23d0bd8ff4092faddf31677835d1b222fc6134edfb9</username> 
      <password encrypted="true">890c46ff605b71d42547fb6e357f383c4cf5b224373e1925</password> 
      <testSQL>select 1</testSQL> 
      <testBeforeUse>false</testBeforeUse> 
      <testAfterUse>false</testAfterUse> 
      <minConnections>5</minConnections> 
      <maxConnections>25</maxConnections> 
      <connectionTimeout>1.0</connectionTimeout>
    </defaultProvider>
  </database> 
  <setup>true</setup>
</jive>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

warrah

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值