How to install rabbitmq-server and erlang in Linux


How to install rabbitmq-server and erlang in Linux

How to install rabbitmq-server and erlang in Amazon Linux 2, full tutorial to setup and manage rabbitmq channels and queues.

Update the system

sudo yum update -y

Install Erlang

sudo yum install https://github.com/rabbitmq/erlang-rpm/releases/download/v23.3.4.11/erlang-23.3.4.11-1.el7.x86_64.rpm -y

Install RabbitMQ

sudo yum install https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.9.13/rabbitmq-server-3.9.13-1.el7.noarch.rpm -y

Start RabbitMQ Server

The server is not started as a daemon by default when the RabbitMQ server package is installed. To start the daemon by default when the system boots, as an administrator run

chkconfig rabbitmq-server on

then

sudo rabbitmq-server -detached

After installation, restart service

sudo systemctl restart rabbitmq-server

Managing the Service

To manage the service you can use the following functions:

sudo systemctl start rabbitmq-server sudo systemctl restart rabbitmq-server sudo systemctl enable rabbitmq-server sudo systemctl status rabbitmq-server sudo systemctl stop rabbitmq-server

Install the management plugin

By default, Rabbitmq is a client plugin that has not been installed, and it needs to be installed.

sudo rabbitmq-plugins enable rabbitmq_management

User management

Description: Rabbitmq has a default account and password is: guest, by default, you can only access it under localhost this unit, so you need to add a remote login user.

Add new users

sudo rabbitmqctl add_user admin admin

Set user assignment operation permissions

sudo rabbitmqctl set_user_tags admin administrator

Add resource permissions to users

sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

Change password

sudo rabbitmqctl change_password username newpassword

Delete user

sudo rabbitmqctl delete_user username

View All User List

sudo rabbitmqctl list_users

Diagnostic rabbitmq

Checks if the local node is running and CLI tools can successfully authenticate with it

sudo rabbitmq-diagnostics ping

Prints enabled components (applications), TCP listeners, memory usage breakdown, alarms

sudo rabbitmq-diagnostics status

Prints cluster membership information

sudo rabbitmq-diagnostics cluster_status

Prints effective node configuration

sudo rabbitmq-diagnostics environment

Cannot start after installation

Try:

sudo lsof -i :25672
sudo kill <PID>
sudo rabbitmq-server -detached

Where is the process ID that is occupying port 25672

Uninstall Rabbitmq and Erlang

Uninstall Erlang

yum list | grep erlang
yum -y remove erlang-*
rm -rf /usr/lib64/erlang

Uninstall Rabbitmq

yum list | grep rabbitmq
yum -y remove rabbitmq-server.noarch

find / -name rabbit*

Other resources:

Newsletter


Related Posts

Discover the Best Free AI Art Tools for Your Next Masterpiece

Explore a curated collection of the finest free AI art tools, designed to help you bring your artistic vision to life.

SaaS vs. Software Agency: Choosing the Right Business Model for Your Startup

Discover the key differences between SaaS and Software Agencies to make informed business decisions and stay ahead in the competitive market.

Top ChatGPT Prompts for Technical People and Startup Founders

Discover the ultimate list of ChatGPT prompts designed specifically for technical people and startup founders. Enhance your AI interactions and boost productivity with these powerful prompts. Revolutionize the way you work and stay ahead of the competition. Read now!

Chatbots for your website

Chatbots for your website

Discover the Power of Whatsapp-web.js for Safe and Easy Automation

Automate WhatsApp with ease using Whatsapp-web.js, a NodeJS client library that connects through the official WhatsApp Web app, reducing ban risks. Perfect for user or business accounts.

Revving Up Success: How to Validate Your Car Alert App Idea

Discover the keys to success in the car alert app market. Learn how to validate your business idea, ensuring your app sends timely alerts for document expirations and service checks.

Navigating the Food Delivery Fleet Management Landscape with ManagerLivrari

Discover Manager Livrari: Your all-in-one solution for streamlining food delivery fleet management. Automate calculations, generate weekly reports, and optimize your operations with ease.

Tools for Analyzing Your Competition

Before knowing where your business stands, you should look at the market and your competition. You need to know what marketing tactics and strategies are working for your audience, what traffic the competition has, and how they position.

Free Online Photo Editor with Cool Effects | Edit Images Easily

Transform your images with our free online photo editor with cool effects. Add filters, adjust colors, and apply creative enhancements. Edit your photos easily and make them stand out.

How to find the size of a table in SQL?

Learn how to determine the size of a SQL table with this informative guide. Discover efficient methods for measuring table size.