openfire connection manager本机安装、使用之windows

openfire版本: 3.8.2 [url=http://www.igniterealtime.org/downloads/index.jsp]download[/url]
connection manager [url=http://www.igniterealtime.org/projects/openfire/connection_manager.jsp] download[/url]

[b]一、解压至安装目录[/b]

[b]二、配置openfire[/b]
选择启用,填写密码,一般端口默认,下一步骤需配置此端口,点击保存
[img]http://dl.iteye.com/upload/picture/pic/128811/10ed2e14-6049-3a7b-ac55-a7d95781a4d5.jpg[/img]

[b]三、配置连接管理器[/b]
。打开 连接管理器\conf\manager.xml
1、修改如下 XXX 为你的openfire连接管理器配置内容

<!-- Name of the server to connect. This property is required. -->
<domain>XXX</domain>
<!-- IP address or hostname of the XMPP server. If not defined then a DNS SRV lookup of the domain will be performed. -->
<!-- <hostname></hostname> -->
<!-- TCP port to connect to the XMPP server on. -->
<port>XXX</port>
<!-- Password to use to log into the server. This property is required. -->
<password>XXX</password>


[color=blue]2、设置不用验证证书 (verify 为 false)[/color]

<server>
<certificate>
<!-- Flag that indicates if certificates of the server should be validated. -->
<verify>false</verify>
</certificate>
</server>


[color=red]3、因openfire与 connection manager安装于同一台机器,为避免端口冲突,需修改 connection manager端口[/color]

<socket>
<default>
<active>true</active>
<!-- Default port to use for plain/TLS client connections. -->
<port>5288</port>
</default>

<ssl>
<active>true</active>
<!-- Default port to use for client connections using old SSL method. -->
<port>5299</port>
<storeType>jks</storeType>
<!-- <keystore></keystore>
<keypass></keypass>
<truststore></truststore>
<trustpass></trustpass> -->
</ssl>
</socket>


[b]四、启动[/b]
。切换至 connection manager安装目录\bin\cmanager.bat 双击运行
运行成功将看到如下信息

Connection Manager 3.6.3 已启动 【2013-12-16 18:24:36】


。启动openfire,进入后台管理,如配置将在刚配置的连接管理中看到启动的连接管理器,如下图
[img]http://dl.iteye.com/upload/picture/pic/128813/7232147d-dd8f-3e4d-abc1-9c306b4f6022.jpg[/img]

[b]五、测试[/b]
把客户端或连接代码域名和端口修改为刚connection manager配置就OK
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值