安装openfire

安装jdk环境
http://blog.youkuaiyun.com/u013619834/article/details/38894649

安装openfire
tar zxvf openfire_3_9_1.tar.gz
mv openfire /usr/local

单独找一台服务器部署mysql
mysql
create database openfire
use openfire
source/usr/local/openfire/resources/database/openfire_mysql.sql;
GRANT ALL PRIVILEGES ON `openfire`.* TO 'openfire'@'%' IDENTIFIEDBY "123456";
flush privileges;

/usr/local/openfire/bin/openfire start

访问网页地址
http://10.20.200.101:9090/
在数据库设置的时候设置好数据库的ip、数据库名、用户名、密码等


登陆进去之后,安装集群插件
Broadcast
Hazelcast Clustering Plugin
Clustering Plugin

cd /usr/local/openfire/plugins/hazelcast/classes
vim hazelcast-cache-config.xml
设置集群的主机
tcp-ip enabled="true"
10.20.200.102:5701


/usr/local/openfire/bin/openfire restart

机器重启openfire,然后使clustering 
Enabled,即可看到集群部署成功
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值