ubuntu1404安装ActiveMQ
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu1404安装ActiveMQ相关的知识,希望对你有一定的参考价值。
环境是Ubuntu14.04,jdk1.8.0_73, ActiveMQ-5.13.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
安装配置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
下载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/
启动和测试
启动 /opt/activemq/bin/activemq start
测试 /opt/activemq/bin/activemq status
ps -ax | grep (61616 或activemq)
以上是关于ubuntu1404安装ActiveMQ的主要内容,如果未能解决你的问题,请参考以下文章