connection manager download
一、解压至安装目录
二、配置openfire
选择启用,填写密码,一般端口默认,下一步骤需配置此端口,点击保存
三、配置连接管理器
。打开 连接管理器\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>
2、设置不用验证证书 (verify 为 false)
<server> <certificate> <!-- Flag that indicates if certificates of the server should be validated. --> <verify>false</verify> </certificate> </server>
3、因openfire与 connection manager安装于同一台机器,为避免端口冲突,需修改 connection manager端口
<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>
四、启动
。切换至 connection manager安装目录\bin\cmanager.bat 双击运行
运行成功将看到如下信息
Connection Manager 3.6.3 已启动 【2013-12-16 18:24:36】
。启动openfire,进入后台管理,如配置将在刚配置的连接管理中看到启动的连接管理器,如下图
五、测试
把客户端或连接代码域名和端口修改为刚connection manager配置就OK