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)
- 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] - 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
Change to the installation directory and run ActiveMQ
cd [activemq_install_dir]\bin
./activemq start
Stopping ActiveMQ
- Change to the installation directory and stop ActiveMQ
cd [activemq_install_dir]\bin
./activemq stop
Check the status of ActiveMQ
./activemq status
Installation procedure for Windows
Download the latest stable release (see Download -> "The latest stable release")
Extract ActiveMQ from the ZIP file into a directory of your choice
Managing ActiveMQ
Starting ActiveMQ
- Change to the installation directory and run ActiveMQ
cd [activemq_install_dir]\bin
./activemq start
Stopping ActiveM
- 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
- Open the file [activemq installation directory]/bin/[linux-x86-32/linux-x86-64]/activemq
- Uncomment the line RUN_AS_USER.
- Edit like RUN_AS_USER =Your username.
- Save it and exit.
- Go back to [activemq installation directory]/bin/ and start the activemq.