安装使用 ActiveMQ Apollo

下载

wget http://ftp.kddilabs.jp/infosystems/apache/activemq/activemq-apollo/1.7.1/apache-apollo-1.7.1-unix-distro.tar.gz

# 将其解压到 /usr/local/activemq-apollo 目录

# 创建目录
mkdir /usr/local/activemq-apollo
tar xvzf apache-apollo-1.7.1-unix-distro.tar.gz  -C /usr/local/activemq-apollo --strip-components=1

创建 broker

# 先创建broker存储目录
mkdir /data/apollo/

# 创建broker
$ cd /usr/local/activemq-apollo
$ bin/apollo create /data/apollo/broker
Creating apollo instance at: /data/apollo/broker
Generating ssl keystore...

You can now start the broker by executing:

   "/data/apollo/broker/bin/apollo-broker" run

Or you can setup the broker as system service and run it in the background:

   sudo ln -s "/data/apollo/broker/bin/apollo-broker-service" /etc/init.d/
   /etc/init.d/apollo-broker-service start

配置web admin

sed -i 's/127.0.0.1:61680/192.168.2.11:61680/' /data/apollo/broker/etc/apollo.xml

启动服务

ln -s "/data/apollo/broker/bin/apollo-broker-service" /etc/init.d/
service  apollo-broker-service start

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注