码迷,mamicode.com
首页 > 其他好文 > 详细

activemq和mqtt消息总线

时间:2016-06-22 10:38:16      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:

activemq服务器apollo-1.7.1下载地址
linux版本
windows版本

1.配置环境变量
———————————
前提是已经有java环境变量
———————————
linux
修改 /etc/profile文件,添加以下内容:

export APOLLO_HOME=/usr/local/apache-apollo-1.7.1
export PATH=$APOLLO_HOME/bin:$PATH

 

source /etc/profile 重新加载
2.创建代理
apollo create mybroker,有如下结果:

Creating apollo instance at: mybroker
Generating ssl keystore...

You can now start the broker by executing:  

   "/usr/local/apache-apollo-1.7.1/mybroker/bin/apollo-broker" run

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

   sudo ln -s "/usr/local/apache-apollo-1.7.1/mybroker/bin/apollo-broker-service" /etc/init.d/
   /etc/init.d/apollo-broker-service start

 

3.根据提示启动服务,比如:

 "/usr/local/apache-apollo-1.7.1/mybroker/bin/apollo-broker" run
得到如下结果,证明启动成功了。
    _____                .__  .__
   /  _  \ ______   ____ |  | |  |   ____
  /  /_\  \\____ \ /  _ \|  | |  |  /  _  /    |    \  |_> >  <_> )  |_|  |_(  <_> )
 \____|__  /   __/ \____/|____/____/\____/
         \/|__|  Apache Apollo (1.7.1)

Loading configuration file ‘/usr/local/apache-apollo-1.7.1/mybroker/etc/apollo.xml‘.
INFO  | OS     : Linux 3.13.0-86-generic (Ubuntu 14.04.4 LTS)
INFO  | JVM    : Java HotSpot(TM) 64-Bit Server VM 1.8.0_73 (Oracle Corporation)
INFO  | Apollo : 1.7.1 (at: /usr/local/apache-apollo-1.7.1)
INFO  | OS is restricting the open file limit to: 3125
WARN  | Please increase the process file limit using ‘ulimit -n 8500‘ 
       or configure lower connection limits on the broker connectors.
INFO  | Starting store: leveldb store at /usr/local/apache-apollo-1.7.1/mybroker/data
INFO  | Accepting connections at: tcp://0.0.0.0:61613
INFO  | Accepting connections at: tls://0.0.0.0:61614
INFO  | Accepting connections at: ws://0.0.0.0:61623/
INFO  | Accepting connections at: wss://0.0.0.0:61624/
INFO  | Administration interface available at: https://127.0.0.1:61681/
INFO  | Administration interface available at: http://127.0.0.1:61680/

 

==================================================================
windows 版本不再赘述。

activemq和mqtt消息总线

标签:

原文地址:http://www.cnblogs.com/swbzmx/p/5605867.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!