---
title: "openfire connection manager本机安装、使用之windows"
author: "showlike"
date: "2013-12-16T18:09:06Z"
tags: []
categories: ["开源软件"]
slug: "openfire-connection-manager-windows"
draft: false
lastmod: "2013-12-17T09:13:21Z"
id: 1990514
url: "https://showlike.iteye.com/blog/1990514"
---

openfire版本: 3.8.2  [download](http://www.igniterealtime.org/downloads/index.jsp)
connection manager  [ download](http://www.igniterealtime.org/projects/openfire/connection_manager.jsp)

**一、解压至安装目录**

**二、配置openfire**
选择启用，填写密码，一般端口默认，下一步骤需配置此端口，点击保存
![](http://dl.iteye.com/upload/picture/pic/128811/10ed2e14-6049-3a7b-ac55-a7d95781a4d5.jpg)

**三、配置连接管理器**
。打开 连接管理器\conf\manager.xml
1、修改如下 XXX 为你的openfire连接管理器配置内容

```java

<!-- 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>

```


<span style="color:blue">2、设置不用验证证书 (verify 为 false)</span>

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

```


<span style="color:red">3、因openfire与 connection manager安装于同一台机器，为避免端口冲突，需修改 connection manager端口</span>

```java

<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 双击运行
运行成功将看到如下信息

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

```


。启动openfire，进入后台管理，如配置将在刚配置的连接管理中看到启动的连接管理器，如下图
![](http://dl.iteye.com/upload/picture/pic/128813/7232147d-dd8f-3e4d-abc1-9c306b4f6022.jpg)

**五、测试**
把客户端或连接代码域名和端口修改为刚connection manager配置就OK