Note: Run ActiveMQ before the fineract server.

Installing ActiveMQ

 Prerequisites:

  • Atleast java Runtime Environment (JRE)  JRE 1.7 (1.6 for version <=5.10.0)
  • The JAVA_HOME environment variable must be set to the directory where the JRE is installed

Installation procedure for Ubuntu (preferably ubuntu 14.04)

  1.  Download the ActiveMQ zipped tarball file to the Unix machine
     wget -c "http://www.apache.org/dyn/closer.cgi?filename=/activemq/5.15.1/apache-activemq-5.15.1-bin.tar.gz&action=download" -O [activemq_install_dir]

  2. Extract the files from the zipped tarball into a directory of your choice.
    cd [activemq_install_dir]
    tar zxvf activemq-x.x.x-bin.tar.gz

Managing ActiveMQ

 Starting ActiveMQ

  1. Change to the installation directory and run ActiveMQ
     cd [activemq_install_dir]\bin
    ./activemq start

             
Stopping ActiveMQ

  1. Change to the installation directory and stop ActiveMQ  

           cd [activemq_install_dir]\bin
          ./activemq stop

Check the status of ActiveMQ

  1. ./activemq status

Installation procedure for Windows

  1. Download the latest stable release (see Download -> "The latest stable release")

  2. Extract ActiveMQ from the ZIP file into a directory of your choice

Managing ActiveMQ

 Starting ActiveMQ

  1. Change to the installation directory and run ActiveMQ
     cd [activemq_install_dir]\bin
    ./activemq start

Stopping ActiveM

  1.  Change to the installation directory and stop ActiveMQ
    cd [activemq_install_dir]\bin
    ./activemq stop

Recently Faced Errors

  -su: 3: cannot create /root/apache-activemq-5.15.1//data/activemq.pid: Permission denied

  1.  Open the file [activemq installation directory]/bin/[linux-x86-32/linux-x86-64]/activemq
  2. Uncomment the line RUN_AS_USER.
  3. Edit like  RUN_AS_USER =Your username.
  4. Save it and exit.
  5. Go back to  [activemq installation directory]/bin/  and start the activemq.


  • No labels