MQTT——之Apollo的使用

Apache Apollo,新一代ActiveMQ消息系统,有Apache维护,其他的就不多说了,详细信息看官方网站。

Apollo既可以安装在linux、ios也可安装在window上

1.官方地址: http://activemq.apache.org/apollo/download.html

2.window安装的条件
  If you're on Windows Vista, Server 2008, or later you should install the MS VC++ 2010 Redistributable package so that Apollo can use the JNI implementation of LevelDB.
If you're running a 32 bit JVM, install: Microsoft Visual C++ 2010 Redistributable Package (x86)
If you're running a 64 bit JVM, install: Microsoft Visual C++ 2010 Redistributable Package (x64)
即要安装Visual C++ 2010

3.下载Apollo,解压到指定的目录,如:D:\Program Files\Apollo\

4.运行bin目录下的apollo.cmd

5.建立broker实例
        create mubroker ,最简单的方式,目录会安装在bin目录下,正式使用时不推荐这样做。
You can now start the broker by executing:
   "D:\Program Files\Apollo\apache-apollo-1.6\bin\mybroker\bin\apollo-broker" run
Or you can setup the broker as system service and run it in the background:
   "D:\Program Files\Apollo\apache-apollo-1.6\bin\mybroker\bin\apollo-broker-service" install
   "D:\Program Files\Apollo\apache-apollo-1.6\bin\mybroker\bin\apollo-broker-service" start
6.运行run命令,可以看到程序运行

7.登陆服务端
        http://127.0.0.1:61680/ or https://127.0.0.1:61681/
        The default login id and password is admin and password.

猜你喜欢

转载自chourentang.iteye.com/blog/1871774