码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu1404安装ActiveMQ

时间:2016-02-29 00:47:50      阅读:294      评论:0      收藏:0      [点我收藏+]

标签:ubuntu   activemq   消息队列   

环境是Ubuntu14.04,jdk1.8.0_73, ActiveMQ-5.13.1

  1. 下载jdk

    http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html


    mkdir /usr/lib/jvm

    tar zxvf jdk-8u73-linux-x64.tar.gz

    mv jdk1.8.0_73 /usr/lib/jvm/

    mv /usr/lib/jvm/jdk1.8.0_73 /usr/lib/jvm/jdk

  2. 安装配置jdk

    终端下一次执行以下语句

    update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk/bin/java 1065

    update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk/bin/javac 1065

    update-alternatives --install /usr/bin/jar jar /usr/lib/jvm/jdk/bin/jar 1065

    update-alternatives --install /usr/bin/javaw javaw /usr/lib/jvm/jdk/bin/javaw 1065

    update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk/bin/javaws 1065

    update-alternatives --config java

  3. 下载ActiveMQ

    地址:http://www.apache.org/dyn/closer.cgi?path=/activemq/5.13.1/apache-activemq-5.13.1-bin.tar.gz

    tar zxvf apache-activemq-5.13.1-bin.tar.gz

    mv apache-activemq-5.13.1-bin.tar.gz  activemq

    mv activemq /opt/

  4. 启动和测试

    启动 /opt/activemq/bin/activemq start

    测试 /opt/activemq/bin/activemq status

    ps -ax | grep (61616 或activemq)

ubuntu1404安装ActiveMQ

标签:ubuntu   activemq   消息队列   

原文地址:http://rhino.blog.51cto.com/5504750/1745807

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