...
- Download the latest stable ActiveMQ release (
apache-activemq-x.y.z.tar.gz
). - Move to the installation root
cd /usr/local
. - Unpack the release
tar xzvf /path/to/apache-activemq-x.y.z.tar.gz
- Create ActiveMQ user account
useradd activemq
- Set up key store in
/usr/local/apache-activemq-x.y.z/conf/broker.ks
- Create trust store and import trusted certificates into
/usr/local/apache-activemq-x.y.z/conf/broker.ts
- Edit the configuration files
vim /usr/local/apache-activemq-x.y.z/conf/{activemq,jetty}.xml
- Give the
activemq
user ownership of the installation directorychown -R activemq:activemq /usr/local/apache-activemq-x.y.z/
(or at least thedata
-directory which houses the log file) - Make sure the keystore is only readable by the activemq user (
chmod 600 /usr/local/apache-activemq-x.y.z/conf/broker.ks
) - Setup service script
- Make sure the relevant ports are open in the firewall (8161 if the administration interface should be accessible, 61617 for SSL if this guide is followed and optionally 61616 for TCP)
...