Tools: Installing RabbitMQ on Ubuntu 26.04

Tools: Installing RabbitMQ on Ubuntu 26.04

Install RabbitMQ

Manage the RabbitMQ Service

Configure RabbitMQ

Configure Firewall Rules

Configure Nginx as a Reverse Proxy

Secure with Let's Encrypt SSL

Access the Dashboard

Next Steps RabbitMQ is an open-source message broker that enables distributed applications to communicate through message queues, decoupling producers and consumers across services. This guide installs RabbitMQ on Ubuntu 26.04, enables the management plugin, creates an admin user, and secures the web dashboard with Nginx and a Let's Encrypt certificate. By the end, you'll have RabbitMQ running with a secure management interface accessible over HTTPS. RabbitMQ is available in Ubuntu 26.04's default APT repository. 1. Update the APT package index: 2. Install Erlang and RabbitMQ: What you just installed: 3. Verify the installed version: Enable RabbitMQ to start automatically when the server boots. 1. Enable and start the service: 2. Check the service status: 3. Stop or restart the service when needed: 1. Enable the management plugin: 2. Create an admin user: 3. Grant the user administrator permissions: 4. Set resource permissions for the default virtual host: The three permission patterns grant configure, write, and read access on all resources in the / virtual host. The RabbitMQ management interface listens on port 15672. Proxy it through Nginx on port 80. 2. Enable and start Nginx: 3. Create the reverse proxy configuration: 4. Enable the site and reload Nginx: 1. Install Certbot with the Nginx plugin: 2. Generate and install the certificate: Certbot updates the Nginx configuration to redirect HTTP to HTTPS automatically. 3. Test the auto-renewal timer: Open https://rabbitmq.example.com in a browser and log in with the admin credentials you created. The management interface shows queues, exchanges, connections, and message rates. RabbitMQ is now running with a secured management interface. From here you can: For the full guide with additional tips, visit the original article on Vultr Docs. Templates let you quickly answer FAQs or store snippets for re-use. Hide child comments as well For further actions, you may consider blocking this person and/or reporting abuse

Command

Copy

$ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">update $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install gnupg erlang rabbitmq-server -y $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install gnupg erlang rabbitmq-server -y $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install gnupg erlang rabbitmq-server -y $ rabbitmq-diagnostics --version $ rabbitmq-diagnostics --version $ rabbitmq-diagnostics --version $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">status rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">stop rabbitmq-server $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">restart rabbitmq-server $ -weight: 600;">sudo rabbitmq-plugins -weight: 500;">enable rabbitmq_management $ -weight: 600;">sudo rabbitmq-plugins -weight: 500;">enable rabbitmq_management $ -weight: 600;">sudo rabbitmq-plugins -weight: 500;">enable rabbitmq_management $ -weight: 600;">sudo rabbitmqctl add_user example_admin strong_password $ -weight: 600;">sudo rabbitmqctl add_user example_admin strong_password $ -weight: 600;">sudo rabbitmqctl add_user example_admin strong_password $ -weight: 600;">sudo rabbitmqctl set_user_tags example_admin administrator $ -weight: 600;">sudo rabbitmqctl set_user_tags example_admin administrator $ -weight: 600;">sudo rabbitmqctl set_user_tags example_admin administrator $ -weight: 600;">sudo rabbitmqctl set_permissions -p / example_admin ".*" ".*" ".*" $ -weight: 600;">sudo rabbitmqctl set_permissions -p / example_admin ".*" ".*" ".*" $ -weight: 600;">sudo rabbitmqctl set_permissions -p / example_admin ".*" ".*" ".*" $ -weight: 600;">sudo ufw allow 80/tcp $ -weight: 600;">sudo ufw allow 443/tcp $ -weight: 600;">sudo ufw allow 80/tcp $ -weight: 600;">sudo ufw allow 443/tcp $ -weight: 600;">sudo ufw allow 80/tcp $ -weight: 600;">sudo ufw allow 443/tcp $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install nginx -y $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install nginx -y $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install nginx -y $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable nginx $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start nginx $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable nginx $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start nginx $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">enable nginx $ -weight: 600;">sudo -weight: 500;">systemctl -weight: 500;">start nginx $ -weight: 600;">sudo nano /etc/nginx/sites-available/rabbitmq.example.com.conf $ -weight: 600;">sudo nano /etc/nginx/sites-available/rabbitmq.example.com.conf $ -weight: 600;">sudo nano /etc/nginx/sites-available/rabbitmq.example.com.conf server { listen 80; server_name rabbitmq.example.com; location / { proxy_pass http://localhost:15672; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } server { listen 80; server_name rabbitmq.example.com; location / { proxy_pass http://localhost:15672; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } server { listen 80; server_name rabbitmq.example.com; location / { proxy_pass http://localhost:15672; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } } $ -weight: 600;">sudo ln -s /etc/nginx/sites-available/rabbitmq.example.com.conf /etc/nginx/sites-enabled/ $ -weight: 600;">sudo nginx -t $ -weight: 600;">sudo -weight: 500;">systemctl reload nginx $ -weight: 600;">sudo ln -s /etc/nginx/sites-available/rabbitmq.example.com.conf /etc/nginx/sites-enabled/ $ -weight: 600;">sudo nginx -t $ -weight: 600;">sudo -weight: 500;">systemctl reload nginx $ -weight: 600;">sudo ln -s /etc/nginx/sites-available/rabbitmq.example.com.conf /etc/nginx/sites-enabled/ $ -weight: 600;">sudo nginx -t $ -weight: 600;">sudo -weight: 500;">systemctl reload nginx $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install certbot python3-certbot-nginx -y $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install certbot python3-certbot-nginx -y $ -weight: 600;">sudo -weight: 500;">apt -weight: 500;">install certbot python3-certbot-nginx -y $ -weight: 600;">sudo certbot --nginx -d rabbitmq.example.com --agree-tos $ -weight: 600;">sudo certbot --nginx -d rabbitmq.example.com --agree-tos $ -weight: 600;">sudo certbot --nginx -d rabbitmq.example.com --agree-tos $ -weight: 600;">sudo certbot renew --dry-run $ -weight: 600;">sudo certbot renew --dry-run $ -weight: 600;">sudo certbot renew --dry-run - erlang: the runtime RabbitMQ is built on - rabbitmq-server: the message broker daemon - Create queues and exchanges through the management dashboard or API - Integrate RabbitMQ with a Python application using the pika library - Set up clustering with additional RabbitMQ nodes for high availability