(1) Download the latest Unix/Linux distribution of Apache MQ from this site:
http://activemq.apache.org/download.html
The file will be saved as tar.gz
(2) Extract the file to a specific directory.
One of the thing which I have learnt from my previous job (which uses Ubuntu for development) is to place the installation files under version as well. Thus, I created a ApacheMQ folder under ~/opt
Then move the extracted files to the ~/opt/ActiveMQ
Thus, the installation folder in the end becomes ~/opt/ActiveMQ/apache-activemq-5.5.1
Now, do a sym link.
This way, if in the future you want to change to newer version, you can always refer the specific version which you wanted as “current”
(3) start the service
Go to ~/opt/ActiveMQ/current/bin and run activemq
(4) Test it
Hit this to your browser http://localhost:8161



