环境是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)
原文地址:http://rhino.blog.51cto.com/5504750/1745807