Apache ActiveMQ is an open-source message broker written in Java that supports many different messaging protocols, including JMS, AMQP, STOMP, MQTT, and more. In this article, we will explain how to install Apache ActiveMQ on a Debian 10 server.
Before you begin, make sure that you have a Debian 10 server that is connected to the internet, and that you have a non-root user with sudo privileges.
To install Apache ActiveMQ, you first need to add the Apache ActiveMQ package repository to your server’s package sources. You can do this by running the following command:
echo "deb <https://downloads.apache.org/activemq/debian/> activemq main" | sudo tee /etc/apt/sources.list.d/activemq.list
This will add the Apache ActiveMQ package repository to your server.
Next, you need to download the Apache ActiveMQ package signing key and add it to your system’s keyring by running the following commands:
wget -q <https://downloads.apache.org/activemq/KEYS>
sudo apt-key add KEYS
This will download the Apache ActiveMQ package signing key and add it to your system’s keyring, allowing you to verify the authenticity of the Apache ActiveMQ packages.
Once the package signing key is added, you can update the package list and install Apache ActiveMQ by running the following commands:
sudo apt-get update
sudo apt-get install activemq
This will update the package list and install the latest version of Apache ActiveMQ, along with the necessary dependencies.
Once Apache ActiveMQ is installed, you need to start the Apache ActiveMQ service and enable it to start automatically on system boot by running the following commands:
sudo systemctl start activemq
sudo systemctl enable activemq
These commands will start the Apache ActiveMQ service and enable it to start automatically whenever the server is restarted.
Now that Apache ActiveMQ is installed and running, you can access the Apache ActiveMQ web console by visiting the http://your_server_ip_or_hostname:8161/admin URL in your web browser. This will open the Apache ActiveMQ login page, where you can enter the default username and password (both are admin) and log in to the Apache ActiveMQ web console.
Once you are logged in, you will see the Apache ActiveMQ dashboard, which is the main interface for managing your Apache ActiveMQ instance. From here, you can view the status of your messaging brokers, create new queues and topics, and monitor the message flow in your system. You can also configure the settings for your Apache ActiveMQ instance, such as the transport connectors, the authentication and authorization settings, and the log levels.
In conclusion, installing Apache ActiveMQ on Debian 10 is a simple process that involves adding the Apache ActiveMQ package repository, downloading the package signing key, installing Apache ActiveMQ, starting the Apache ActiveMQ service, and accessing the Apache ActiveMQ web console. By following the steps outlined in this article, you can quickly and easily set up an Apache ActiveMQ instance on your server and start using it for your messaging needs.