1.下载地址
ActiveMQ下载地址
2.解压安装
使用解压工具对压缩包进行解压
3.单节点启动
1
| .\bin\win64\activemq.bat
|
访问http://localhost:8161/admin
用户名:admin
密码:admin
4.集群启动
Master/Slave配置
node1
1 2 3 4 5 6 7 8 9 10 11 12
| <persistenceAdapter> <!-- <kahaDB directory="${activemq.data}/kahadb"/> --> <replicatedLevelDB directory="${activemq.data}/leveldb" replicas="3" bind="tcp://0.0.0.0:62621" zkAddress="localhost:2181,localhost:2182,localhost:2183" hostname="localhost" sync="local_disk" zkPath="/activemq/leveldb-stores" /> </persistenceAdapter>
|
1
| .\bin\win64\activemq.bat
|
node2
1 2 3 4 5 6 7 8 9 10 11 12
| <persistenceAdapter> <!-- <kahaDB directory="${activemq.data}/kahadb"/> --> <replicatedLevelDB directory="${activemq.data}/leveldb" replicas="3" bind="tcp://0.0.0.0:62622" zkAddress="localhost:2181,localhost:2182,localhost:2183" hostname="localhost" sync="local_disk" zkPath="/activemq/leveldb-stores" /> </persistenceAdapter>
|
1
| .\bin\win64\activemq.bat
|
node3
1 2 3 4 5 6 7 8 9 10 11 12
| <persistenceAdapter> <!-- <kahaDB directory="${activemq.data}/kahadb"/> --> <replicatedLevelDB directory="${activemq.data}/leveldb" replicas="3" bind="tcp://0.0.0.0:62623" zkAddress="localhost:2181,localhost:2182,localhost:2183" hostname="localhost" sync="local_disk" zkPath="/activemq/leveldb-stores" /> </persistenceAdapter>
|
1
| .\bin\win64\activemq.bat
|