下载
wget http://ftp.kddilabs.jp/infosystems/apache/activemq/activemq-apollo/1.7.1/apache-apollo-1.7.1-unix-distro.tar.gz
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
mkdir /data/apollo/
$ 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