How to install ActiveMQ on CentOS

In today’s article, we’ll explain how to install Apache ActiveMQ on a CentOS 5.X VPS. Apache ActiveMQ is is the most popular and powerful open source messaging and Integration Patterns server.




Installing Java JDK

First we’ll need to install Java 1.7 JDK. Oracle has recently disallowed direct downloads of java from their servers, luckily we can still use wget to download Java 1.7 JDK. If you have one of our Java Hosting packages this will already be installed and configured.

cd /tmp/
wget --no-cookies --header "Cookie:" \
rpm -Uhv jdk-7u4-linux-i586.rpm

To test if the installation is successful, type

java -version

You should see something like this

java version "1.7.0_04"
 Java(TM) SE Runtime Environment (build 1.7.0_04-b20)
 Java HotSpot(TM) Client VM (build 23.0-b21, mixed mode, sharing)

Installing Apache ActiveMQ

This is just as easy as installing Java.

cd /home/yourname
 tar zxvf apache-activemq-5.6.0-bin.tar.gz
 cd apache-activemq-5.6.0/bin
 ./activemq console &

To test if the installation is successful, type

netstat -an|grep 61616

You should see something like this

tcp 0 0* LISTEN

Any questions, feel free to ask. We’ll help you out.

PS. If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

Install Habari with Nginx on Debian 8
Install Fuel CMS on an Ubuntu 14.04 VPS with Nginx, PHP-FPM and MySQL
How to install ExpressJS on a CentOS VPS
  • Harshita


    Author Reply

    Useful information.
    When I ran the [[email protected] bin]# ./activemq console & command,
    I got the following errors.
    INFO: Invoke the following command to create a configuration file
    ./activemq setup [ /etc/default/activemq | /root/.activemqrc ]

    INFO: Using java ‘/usr/bin/java’
    INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)

    Can you share the configuration details for activemq in CentOS

    • admin


      Author Reply

      You can create a default configuration file using the following command:

      /etc/init.d/activemq setup /etc/default/activemq

      Then, edit the newly generated ‘/etc/default/activemq’ file according to your needs.

Free Migration to RoseHosting. Award Winning Linux VPS Hosting with Fully Managed Support. Coupon RHBLOG50 for 50% offOrder Now