Openfire 的安装和配置

Openfire 的安装和配置

  • 1、 下载最新的openfire安装文件

下载Openfire的网址:http://www.igniterealtime.org/downloads/index.jsp

其中openfire是服务器,下面还有一个spark,这个是一个XMPP协议通信聊天的CS的IM软件,它可以通过openfire进行聊天对话。

  • 2、 下载完成后,如果你下载的是exe文件,执行你的安装文件,进行安装。这里我是zip的文件。解压后,复制openfire目录到C:\Program Files\目录下;一定要在C:\Program Files\目录下的;这样openfire就安装完成了。

  • 3、 下面我们启动openfire服务器

Openfire 的安装和配置

Openfire 的安装和配置

  • 6、 配置服务器域名 选择AES加密 配置加密秘钥

Openfire 的安装和配置

  • 7、 选择数据库

Openfire 的安装和配置

  • 8、 数据库的配置

Openfire 的安装和配置

不配置中数据库的host-name 和 database-name会报错

A connection to the database could not be made. View the error message by opening the “\logs\error.log” log file, then go back to fix the problem.

修改数据库的url [host-name] 改为127.0.0.1不要写成localhost
[database-name] 改为表名test ,记住去掉[]

  • 9、 配置文件设置 默认即可,其他的用法还不懂

Openfire 的安装和配置

  • 10、 管理员账户 可以跳过

Openfire 的安装和配置

  • 11、 安装完成

Openfire 的安装和配置

  • 12、 登录界面 admin admin

Openfire 的安装和配置

  • 13、 登录进去 可看到服务器的设置

Openfire 的安装和配置

  • 14、 openfire搭建成功