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 -y

Install RabbitMQ

sudo yum install -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


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


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:


Related Posts

How to generate referral codes in javascript

How to generate referral codes in javascript very fast with less code

Loop over directories in bash and execute commands

How to loop over directories in bash and execute multiple commands

How to launch a 6 figures startup with 0$ investment

Are you curious how to launch a startup in the fast and effective way? Here's not the answer, but you can understand how to achieve it

Get your Jenkins Passwords from secrets

How to get your Jenkins passwords from your secrets credentials. Follow this simple tutoriale and find your password or ssh private key.

How to cold email

How to cold email - a practical guide about how to use cold email in your activity as a CEO of a software agency or startup owner.

Linux disk space alerts on Discord

Linux disk space alerts. Check your space and be responsible with your project. Take care of your space and don't crack the project.

Git clone private repo in docker

A simple how to guide to use git clone of a private repository inside docker container. With vuejs / nodejs app.

How to detect the browser language in javascript

How to detect the browser language in javascript in just a line of code. The method is working on all major browser

You don't need a macbook pro to be a pro

You don't need a macbook pro to be a pro! You need a laptop and internet connection, and a brain, but you already have it

Free templates for startup

Free HTML templates for startup or a new project. A complete list with free resources to build your next startup's website and gain the traction to the sky.