{"id":1924,"date":"2024-04-07T09:25:07","date_gmt":"2025-12-03T23:52:06","guid":{"rendered":""},"modified":"2025-02-02T00:46:17","modified_gmt":"2025-02-01T23:46:17","slug":"how-to-install-apache-activemq-on-debian-10","status":"publish","type":"post","link":"https:\/\/netcloud24.com\/knowledgebase\/how-to-install-apache-activemq-on-debian-10\/","title":{"rendered":"Linux VPS &#038; VPS Windows Setup Guide | NetCloud24 Apache ActiveMQ on Debian 10"},"content":{"rendered":"<p>\u00a0<\/p>\n<\/p>\n<h1>\u00a0<\/h1>\n<p>Apache ActiveMQ is an open-source message broker that supports multiple messaging protocols and provides high-performance, multi-protocol messaging for applications. In this guide, we will walk you through how to install Apache ActiveMQ on Debian 10. Whether you&#8217;re using a  or another hosting service, ActiveMQ can be easily deployed to manage messaging between applications.<\/p>\n<h2>Prerequisites<\/h2>\n<p>Before you begin, ensure you have the following:<\/p>\n<ul>\n<li>A Debian 10 server, which could be hosted on a <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">UK Windows VPS<\/a>, <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">Windows VPSVirtual Private Servers<\/a>, or another <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">Windows VPS Hosting UK<\/a> solution.<\/li>\n<li>Root or sudo privileges on your server.<\/li>\n<li>A working installation of Java (ActiveMQ requires Java to run).<\/li>\n<\/ul>\n<h2>Step 1: Update Your System<\/h2>\n<p>As always, start by updating your system to ensure all packages are up to date:<\/p>\n<pre><code>sudo apt update &amp;&amp; sudo apt upgrade -y<\/code><\/pre>\n<h2>Step 2: Install Java<\/h2>\n<p>Apache ActiveMQ requires Java to run. You can install OpenJDK, the open-source version of Java, with the following command:<\/p>\n<pre><code>sudo apt install openjdk-11-jdk -y<\/code><\/pre>\n<p>Verify the installation of Java by running:<\/p>\n<pre><code>java -version<\/code><\/pre>\n<p>You should see output showing that Java 11 is installed.<\/p>\n<h2>Step 3: Download Apache ActiveMQ<\/h2>\n<p>Go to the <a href=\"https:\/\/activemq.apache.org\/\" target=\"_blank\" rel=\"follow\">official Apache ActiveMQ website<\/a> and download the latest stable version of ActiveMQ. Alternatively, use the following <code>wget<\/code> command to download the latest version:<\/p>\n<pre><code>wget https:\/\/downloads.apache.org\/activemq\/5.16.3\/apache-activemq-5.16.3-bin.tar.gz<\/code><\/pre>\n<p>Once the download is complete, extract the tarball:<\/p>\n<pre><code>tar -xvzf apache-activemq-5.16.3-bin.tar.gz<\/code><\/pre>\n<p>Move the extracted files to a more permanent directory:<\/p>\n<pre><code>sudo mv apache-activemq-5.16.3 \/opt\/activemq<\/code><\/pre>\n<h2>Step 4: Configure Apache ActiveMQ<\/h2>\n<p>To configure ActiveMQ, you need to create a systemd service file so that ActiveMQ can run as a service. Create the file with the following command:<\/p>\n<pre><code>sudo nano \/etc\/systemd\/system\/activemq.service<\/code><\/pre>\n<p>Add the following content to the file:<\/p>\n<pre><code>[Unit]\r\nDescription=Apache ActiveMQ\r\nAfter=network.target\r\n\r\n[Service]\r\nType=forking\r\nExecStart=\/opt\/activemq\/bin\/activemq start\r\nExecStop=\/opt\/activemq\/bin\/activemq stop\r\nUser=root\r\nGroup=root\r\nRestart=always\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/code><\/pre>\n<p>Save and close the file, then reload the systemd manager to apply the changes:<\/p>\n<pre><code>sudo systemctl daemon-reload<\/code><\/pre>\n<p>Start the ActiveMQ service and enable it to start on boot:<\/p>\n<pre><code>sudo systemctl start activemq\r\nsudo systemctl enable activemq<\/code><\/pre>\n<h2>Step 5: Access the ActiveMQ Web Console<\/h2>\n<p>By default, the ActiveMQ web console runs on port 8161. Open your browser and navigate to <code>http:\/\/your-server-ip:8161\/admin<\/code>. The default credentials are:<\/p>\n<ul>\n<li>Username: <code>admin<\/code><\/li>\n<li>Password: <code>admin<\/code><\/li>\n<\/ul>\n<p>It is recommended to change the default credentials for security purposes.<\/p>\n<h2>Step 6: Secure Apache ActiveMQ with a Firewall<\/h2>\n<p>For security, it is recommended to restrict access to the ActiveMQ web interface. You can configure your firewall (such as UFW) to allow only trusted IP addresses to access port 8161. For example, to allow only specific IPs, use:<\/p>\n<pre><code>sudo ufw allow from your-trusted-ip to any port 8161<\/code><\/pre>\n<p>Be sure to adjust the firewall settings based on your requirements.<\/p>\n<h2>Step 7: (Optional) Enable SSL for ActiveMQ<\/h2>\n<p>If you want to secure communication with ActiveMQ using SSL, you&#8217;ll need to configure SSL in the <code>activemq.xml<\/code> configuration file. Generate or obtain an SSL certificate and follow the instructions on the official <a href=\"https:\/\/activemq.apache.org\/security\" target=\"_blank\" rel=\"follow\">Apache ActiveMQ security page<\/a> for detailed SSL setup.<\/p>\n<h2>Conclusion<\/h2>\n<p>By following these steps, you have successfully installed and configured Apache ActiveMQ on Debian 10. Whether you&#8217;re hosting on a , <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">Microsoft SQL VPS Windows<\/a>, or another <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">Windows VPSVirtual Private Server Hosting<\/a> solution, ActiveMQ provides a reliable messaging broker for managing communications between distributed systems.<\/p>\n<footer>\n<p>For more VPS hosting options, visit . They offer a variety of <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">Windows VPSVirtual Private Servers<\/a> and <a href=\"https:\/\/ie.netcloud24.com\" target=\"_blank\" rel=\"follow\">Windows VPS Hosting UK<\/a> solutions tailored to your needs.<\/p>\n<\/footer>\n<div class=\"post-author-box\" style=\"border-top:1px solid #ddd;margin-top:20px;padding-top:15px;\">\n<p><strong>Author:<\/strong> \u0141ukasz Bodziony<\/p>\n<p><strong>Website:<\/strong> <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a><\/p>\n<p><em>\u0141ukasz Bodziony is the CEO and founder of <a href=\"https:\/\/netcloud24.com\" target=\"_blank\" rel=\"dofollow\">NETCLOUD24<\/a>, a global VPS hosting brand proudly originating from Poland. With extensive experience in cloud computing, virtualization, and server management, he delivers high-performance <strong>Windows VPS<\/strong> and <strong>Remote Desktop Services (RDS)<\/strong> solutions to clients across Europe, North America, and beyond.<\/em><\/p>\n<p><em>His expertise covers a wide range of technologies, including <strong>Microsoft Azure<\/strong>, <strong>Proxmox VE<\/strong>, <strong>Amazon Web Services (AWS)<\/strong>, and numerous other virtualization and cloud platforms.<\/em><\/p>\n<p><em>Beyond running his hosting business, \u0141ukasz also provides <strong>professional paid server configuration and optimization services<\/strong> for companies and individuals. Outside of work, he is dedicated to caring for his children and building a secure future for them.<\/em><\/p>\n<p><em>If you are interested in working with him or need expert assistance with your hosting, cloud environment, or server setup, feel free to reach out via <a href=\"https:\/\/ca.netcloud24.com\" target=\"_blank\" rel=\"dofollow\">Windows VPS<\/a>.<\/em><\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0 \u00a0 Apache ActiveMQ is an open-source message broker that supports multiple messaging protocols and provides high-performance, multi-protocol messaging for applications. In this guide, we will walk you\u2026<\/p>\n","protected":false},"author":1,"featured_media":3421,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_seopress_robots_primary_cat":"","_seopress_titles_title":"","_seopress_titles_desc":"","_seopress_robots_index":"","footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[],"tags":[14,12,11,23,20,21,22,17,7,8,6,10,18,19,15,24,16,5,13,9],"class_list":["post-1924","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","tag-cheapvps","tag-cloudvps","tag-hostingvps","tag-rds","tag-rdscal","tag-remotedesktop","tag-remotedesktopvps","tag-servervps","tag-ukvps","tag-virtualserver","tag-vpshosting","tag-vpsserver","tag-vpssolutions","tag-vpswindows","tag-vpswithwindows","tag-windowsrds","tag-windowsserver","tag-windowsvps","tag-windowsvpshosting","tag-windowsvpsuk"],"jetpack_publicize_connections":[],"_links":{"self":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1924","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1924"}],"version-history":[{"count":0,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1924\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media\/3421"}],"wp:attachment":[{"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1924"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1924"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/netcloud24.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1924"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}