
A message broker enables applications to communicate and share information effectively. Apache ActiveMQ, a popular open-source, multi-protocol Java message broker, supports industry-standard protocols like AMQP (Advanced Message Queuing Protocol) for integrating multi-platform applications, STOMP (Simple Text Oriented Messaging Protocol) for web application messaging over WebSockets, and MQTT (Message Queuing Telemetry Transport) for managing IoT devices. In this article, you will learn how to install Apache ActiveMQ on Ubuntu, specifically on an Ubuntu 20.04 server.
Update the system.
Apache ActiveMQ requires Java to run. Install Java.
Verify the Java installation.
Download ActiveMQ from the Apache. To find the latest version of this software, you can visit the download page.
Extract the downloaded file.
Create a directory named /opt/activemq.
Move the extracted files to the /opt/activemq directory.
Create a group account activemq to run Apache ActiveMQ.
Create a user for the group.
Change the permissions of the /opt/activemq directory.
Create an ActiveMQ systemd service file to control the Apache ActiveMQ service.
Add the below code into the file. Save and close the file.
Edit the jetty.xml configuration file to change the host.
Find the line below:
Change it to:
Save and close the file.
Reload the system daemon.
Start the Apache ActiveMQ service.
Enable the Apache ActiveMQ service to run at system startup.
Verify the status of the service.
Restart ActiveMQ service.
Open your web browser and access the Apache ActiveMQ web UI using the URL http://YourServerIP:8161/admin/. For example:
You have successfully installed Apache ActiveMQ on your Ubuntu server. Use the default credentials admin as your username and admin as your password to log in. You can now configure Apache ActiveMQ via the dashboard.
For more information on Apache ActiveMQ, please visit the official documentation.
0 Comments
Be the first to comment and share your perspective with the community.