Environment is ubuntu14.04,jdk1.8.0_73, ActiveMQ-5.13.1
Download 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
Installing the configuration JDK
The next time the terminal executes the following statement
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
Download ACTIVEMQ
Address: 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/
Start and test
Start/opt/activemq/bin/activemq Start
Test/OPT/ACTIVEMQ/BIN/ACTIVEMQ Status
Ps-ax | grep (61616 or ACTIVEMQ)
ubuntu1404 installation Activemq