mq 集群,基于zookeeper
来源:互联网 发布:嘉年华st轮毂数据 编辑:程序博客网 时间:2024/06/05 19:27
#mq 集群,基于zookeeper
mkdir mq
cd mq
wget wget http://archive.apache.org/dist/activemq/5.11.0/apache-activemq-5.11.0-bin.tar.gz
tar zvxf apache-activemq-5.11.0-bin.tar.gz
cd apache-activemq-5.11.0
#环境变量,切到root用户
vi /etc/profile
ACTIVEMQ_HOME=/home/xxx/mq/apache-activemq-5.11.0
export ACTIVEMQ_HOME
source /etc/profile
#切回普通用户
vi conf/activemq.xml
brokerName="xxx"
#其中hostname改成自己的ip
<persistenceAdapter>
<replicatedLevelDB
directory="${activemq.data}/leveldb"
replicas="3"
bind="tcp://0.0.0.0:62621"
zkAddress="192.168.1.2:2181,192.168.1.3:2181,192.168.1.4:2181"
hostname="192.168.1.2"
zkPath="/activemq/leveldb-stores"/>
</persistenceAdapter>
#启动
/home/xxx/mq/apache-activemq-5.11.0/bin/activemq start
#状态
/home/xxx/mq/apache-activemq-5.11.0/bin/activemq status
#停用
/home/xxx/mq/apache-activemq-5.11.0/bin/activemq stop
#日志
tail -f /home/xxx/mq/apache-activemq-5.11.0/data/activemq.log
mkdir mq
cd mq
wget wget http://archive.apache.org/dist/activemq/5.11.0/apache-activemq-5.11.0-bin.tar.gz
tar zvxf apache-activemq-5.11.0-bin.tar.gz
cd apache-activemq-5.11.0
#环境变量,切到root用户
vi /etc/profile
ACTIVEMQ_HOME=/home/xxx/mq/apache-activemq-5.11.0
export ACTIVEMQ_HOME
source /etc/profile
#切回普通用户
vi conf/activemq.xml
brokerName="xxx"
#其中hostname改成自己的ip
<persistenceAdapter>
<replicatedLevelDB
directory="${activemq.data}/leveldb"
replicas="3"
bind="tcp://0.0.0.0:62621"
zkAddress="192.168.1.2:2181,192.168.1.3:2181,192.168.1.4:2181"
hostname="192.168.1.2"
zkPath="/activemq/leveldb-stores"/>
</persistenceAdapter>
#启动
/home/xxx/mq/apache-activemq-5.11.0/bin/activemq start
#状态
/home/xxx/mq/apache-activemq-5.11.0/bin/activemq status
#停用
/home/xxx/mq/apache-activemq-5.11.0/bin/activemq stop
#日志
tail -f /home/xxx/mq/apache-activemq-5.11.0/data/activemq.log
阅读全文
0 0
- mq 集群,基于zookeeper
- KafKa基于Zookeeper集群安装
- MQ集群
- mq集群
- 基于Primeton ESB的高可用MQ集群配置
- 基于ZooKeeper大规模集群配置系统概述
- 基于ZooKeeper大规模集群配置系统概述
- 基于zookeeper+leveldb搭建activemq集群
- 基于zookeeper+leveldb搭建activemq集群
- 基于zookeeper+leveldb搭建activemq集群
- 基于ZooKeeper大规模集群配置系统概述
- 基于ZooKeeper大规模集群配置系统概述
- 基于zookeeper+leveldb搭建activemq集群
- 基于ZooKeeper大规模集群配置系统概述
- 基于zookeeper+levelDB的ActiveMQ集群
- 基于zookeeper+leveldb搭建activemq集群【转】
- 基于ZooKeeper大规模集群配置系统概述
- 基于zookeeper+leveldb搭建activemq集群
- 停课总结(五)
- 【数论 && 概率论 && 打表找规律】HihoCoder
- 监听器(Listener 第一节)
- Jzoj4755 快速荷叶叶变换
- Ubuntu下caffe+CUDA8.0+OpenCv3.3+Python2.7环境配置
- mq 集群,基于zookeeper
- Java并发编程:ConcurrentHashMap原理分析(1.7与1.8)
- 游戏 BZOJ
- python---统计特定时间发布数量(列表、range、for、元组、字典)
- A game——hihoCoder173
- 自加运算
- HTTP POST GET详解
- c++中引用与指针的区别
- 使用Navicat导入或导出MySQL数据库