Home / Articles / Messaging / activemq-artemis / 2.18.0 / artemis-install

Install Apache ActiveMQ Artemis

Setup

PackageVersionInstall Location
Apache ActiveMQ Artemis2.18.0/opt/apache-activemq-2.18.0
Javajdk1.8.0_241/opt/jdk1.8.0_241

Prerequisites

  • Access as root user or user having root privileges
  • Latest version of Java 8
  • 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)
  • Create a new user and group "activemq". This user will be used to run ActiveMQ services
  • # useradd 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.
  • 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
  • Extract ActiveMQ Artemis tarball into /opt
  • # tar xfz apache-artemis-2.18.0-bin.tar.gz -C /opt
  • Change the ownership of extracted files to activemq user
  • # chown -R activemq:activemq /opt/apache-artemis-2.18.0/
  • Check the contents of activemq install directory
  • # 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
  • Apache ActiveMQ Artemis Install is complete.