-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy path使用用例.txt
58 lines (54 loc) · 2 KB
/
使用用例.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
3台openfire服务器集群
ip分别为: 10.10.152.180、10.10.152.185、10.10.152.189
http://www.igniterealtime.org/downloads/index.jsp 下载 openfire相应平台的版本。并分别在3台机器上进行安装。
将zkfire.jar 替换 openfire/lib/ 下openfire.jar 包。
将cluster.xml 放在 openfire/bin/ 下。
3台机器的一样的操作。不同的只是cluster中的配置:
(1) 10.10.152.180
<?xml version="1.0" encoding="UTF-8"?>
<jive>
<notice>10.10.152.180:3004</notice>
<zoo>
<tickTime>2000</tickTime>
<initLimit>10</initLimit>
<syncLimit>5</syncLimit>
<dataDir>/data/zoo/data</dataDir>
<clientPort>3181</clientPort>
<server name="server.1">10.10.152.180:2888:3888</server>
<server name="server.2">10.10.152.185:2888:3888</server>
<server name="server.3">10.10.152.189:2888:3888</server>
<myid>1</myid>
</zoo>
</jive>
(2) 10.10.152.185
<?xml version="1.0" encoding="UTF-8"?>
<jive>
<notice>10.10.152.185:3004</notice>
<zoo>
<tickTime>2000</tickTime>
<initLimit>10</initLimit>
<syncLimit>5</syncLimit>
<dataDir>/data/zoo/data</dataDir>
<clientPort>3181</clientPort>
<server name="server.1">10.10.152.180:2888:3888</server>
<server name="server.2">10.10.152.185:2888:3888</server>
<server name="server.3">10.10.152.189:2888:3888</server>
<myid>2</myid>
</zoo>
</jive>
(3)
<?xml version="1.0" encoding="UTF-8"?>
<jive>
<notice>10.10.152.189:3004</notice>
<zoo>
<tickTime>2000</tickTime>
<initLimit>10</initLimit>
<syncLimit>5</syncLimit>
<dataDir>/data/zoo/data</dataDir>
<clientPort>3181</clientPort>
<server name="server.1">10.10.152.180:2888:3888</server>
<server name="server.2">10.10.152.185:2888:3888</server>
<server name="server.3">10.10.152.189:2888:3888</server>
<myid>3</myid>
</zoo>
</jive>