Install Apache ActiveMQ Artemis
Apache ActiveMQ Artemis is the next-generation message broker in the Apache ActiveMQ family.
A successful process start is only the first step. You should also verify the management port, protocol ports, persistence directory, user accounts, JVM settings, disk capacity, permissions, and monitoring.
Prerequisites
Artemis is a Java application. JDK 17 is a suitable baseline for current releases:
export JAVA_HOME=/usr/local/jdk17
export PATH="$JAVA_HOME/bin:$PATH"
java -version
Download and extract
wget -O apache-artemis-2.39.0-bin.tar.gz \
'https://www.apache.org/dyn/closer.cgi?filename=activemq/activemq-artemis/2.39.0/apache-artemis-2.39.0-bin.tar.gz&action=download'
tar -zxvf apache-artemis-2.39.0-bin.tar.gz
cd apache-artemis-2.39.0
Create a broker instance
./bin/artemis create broker
The setup wizard asks for the default administrator username and password. Use a strong password and do not reuse development credentials in production.
Start the broker from the instance directory:
cd broker
./bin/artemis run
Run it in the background with the service integration appropriate for your operating system.
Optional configuration
Adjust JVM memory in:
broker/etc/artemis.profile
Review the JAVA_ARGS or Java options section rather than changing memory values blindly.
To change Jolokia CORS rules, edit:
broker/etc/jolokia-access.xml
For example:
<allow-origin>*://*</allow-origin>
Allowing every origin is convenient for testing but unsafe on an Internet-facing console. Restrict origins in production.
To listen on all network interfaces, edit:
broker/etc/bootstrap.xml
<binding name="artemis" uri="http://0.0.0.0:8161">
Expose port 8161 only to trusted networks and protect it with authentication and firewall rules.