Windows Install ActiveMQ
1.下载地址
2.解压安装
使用解压工具对压缩包进行解压
3.单节点启动
.\bin\win64\activemq.bat
访问http://localhost:8161/admin
用户名:admin
密码:admin
4.集群启动
- zookeeper集群启动 (Windows Install ZooKeeper)
- activemq.xml配置 (本文配置三台机器)
Master/Slave配置
node1
<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>
.\bin\win64\activemq.bat
node2
<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>
.\bin\win64\activemq.bat
node3
<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>
.\bin\win64\activemq.bat