安装很简单:
wget http://archive.apache.org/dist/activemq/activemq-apollo/1.7.1/apache-apollo-1.7.1-unix-distro.tar.gz
tar -zxvfapache-apollo-1.7.1-unix-distro.tar.gz
cd apache-apollo-1.7.1/bin
./apollo create mybroker
修改配置文件:
vim mybroker/etc/apollo.xml
<web_admin bind="http://127.0.0.1:61680"/>
<web_admin bind="https://127.0.0.1:61681"/>
<web_admin bind="http://0.0.0.0:61680"/>
<web_admin bind="https://0.0.0.0:61681"/>
vim mybroker/etc/apollo.xml
<connector id="tcp" bind="tcp://0.0.0.0:61613" connection_limit="2000" protocol="mqtt"/>
注意要配置hosts,比如:
vim /etc/hosts
127.0.0.1 node103
启动:
nohup ./mybroker/bin/apollo-broker run&
打开访问页面:
http://192.168.1.103:61680/console/index.html
网友评论