Install Apache ActiveMQ Artemis
Setup
Package | Version | Install Location |
---|---|---|
Apache ActiveMQ Artemis | 2.18.0 | /opt/apache-activemq-2.18.0 |
Java | jdk1.8.0_241 | /opt/jdk1.8.0_241 |
Prerequisites
- Access as root user or user having root privileges
- Latest version of Java 8
- Create a new user and group "activemq". This user will be used to run ActiveMQ services
Download Java 8 latest version from Oracle official website and install on server
# /opt/jdk1.8.0_241/bin/java -version
java version "1.8.0_241"
Java(TM) SE Runtime Environment (build 1.8.0_241-b07)
Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)
# useradd activemq
# id activemq uid=1003(activemq) gid=1003(activemq) groups=1003(activemq)
# id activemq uid=1003(activemq) gid=1003(activemq) groups=1003(activemq)
Download ActiveMQ Artemis
- Login as root user or with user having root privileges
- Download Apache ActiveMQ Artemis from the official website using the following link.
- Extract ActiveMQ Artemis tarball into /opt
- Change the ownership of extracted files to activemq user
- Check the contents of activemq install directory
- Apache ActiveMQ Artemis Install is complete.
Download Apache ActiveMQ Artemis
# ls -l /tmp/apache-artemis-2.18.0-bin.tar.gz
-rw-r--r-- 1 root root 62463974 Sep 10 16:20 apache-artemis-2.18.0-bin.tar.gz
# tar xfz apache-artemis-2.18.0-bin.tar.gz -C /opt
# chown -R activemq:activemq /opt/apache-artemis-2.18.0/
# ls -l /opt/apache-artemis-2.18.0/
drwxr-xr-x 3 activemq activemq 51 Sep 10 16:22 bin
drwxr-xr-x 6 activemq activemq 80 Jan 22 2020 examples
drwxr-xr-x 3 activemq activemq 4096 Sep 10 16:22 lib
-rw-r--r-- 1 activemq activemq 24444 Jan 22 2020 LICENSE
drwxr-xr-x 2 activemq activemq 4096 Sep 10 16:22 licenses
-rw-r--r-- 1 activemq activemq 179 Jan 22 2020 NOTICE
-rw-r--r-- 1 activemq activemq 5391 Jan 22 2020 README.html
drwxr-xr-x 2 activemq activemq 123 Jan 22 2020 schema
drwxr-xr-x 10 activemq activemq 232 Sep 10 16:22 web