activemq和mqtt消息总线

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 版本不再赘述。

转载于:https://www.cnblogs.com/swbzmx/p/5605867.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值