Technical Stuff

Start from basics

Installation and Configuration of Active MQ in Linux

Installation and Configuration of Active MQ in Linux
Installation and Configuration of Active MQ in Linux
5 (100%) 1 vote

Before going ahead with the step by step procedure of installation and configuration of Active MQ.

Kindly read about Active MQ, it will help to easily understand the practical sense of it.

Pre-Installation Requirements


  • 60 MB of free disk space for the ActiveMQ binary distribution.
  • 200 MB of free disk space for the ActiveMQ source or developer’s distributions.

Operating Systems:

  • Windows: Windows XP SP2, Windows 2000.
  • Unix: Ubuntu Linux, Powerdog Linux, MacOS, AIX, HP-UX, Solaris, or any Unix platform that supports Java.


  • Java Developer Kit (JDK) 1.7.x or greater for deployment and 1.7.x (Java 7) for compiling/building.
  • The JAVA_HOME environment variable must be set to the directory where the JDK is installed.
  • JARs that will be used must be added to the classpath.

Lets start with installation and configuration of active mq.

Installation :

  • Download the activemq gzip file to the Unix machine, using either a browser or a tool, i.e., wget, scp, ftp, etc. for example
  • wget
  • Extract the files from the gzip file into a directory of your choice. For example:
  •  tar zxvf activemq-x.x.x.tar.gz
  • If the ActiveMQ start-up script is not executable, change its permissions. The ActiveMQ script is located in the bin directory. For example:
  •  cd [activemq_install_dir]/bin

chmod 755 activemq

Secure Web Console :

The default username and password for Activemq web console is admin/admin. To change this, perform the following steps.

Step 1: Set authenticate = true

Open the jetty.xml file which is inside the conf directory.

Find the following line.

<! — set authenticate=false to disable login –>

<property name=”authenticate” value=”true” />

To turn on login set the value to true. To disable login set it to false.

Set username/password :

Open file inside the conf directory.

Change/add username and password in the following format username: password [, role name …].

Let’s say we want to change the username/password to adminuser/root1234 then, we make the following changes.

# is for comment.

Then, start the Active MQ services.

cd [activemq_install_dir]/bin

./activemq console

./ start

Happy Learning !!!

If you have doubt or queries, you can definetely comment us or can mail us on [email protected]

If you have any recommedation for future blog, You can email us on [email protected]

Related Searches :

Introduction to Active MQ

2 thoughts on “Installation and Configuration of Active MQ in Linux

Leave a Reply

%d bloggers like this: