Preliminary configuration for installing RabbitMQ and RabbitMQ

RabbitMQ Basic Meaning

RabbitMQ is a message middleware that handles asynchronous messages from clients.The message that the server will send is put into the queue pool.Receiver can receive messages from server according to the forwarding mechanism configured by RabbitMQ.RabbitMQ forwards, buffers, and persists messages according to the specified forwarding rules. It mainly communicates between multiple servers or subsystems of a single server. It is a distributed system standard configuration.

1. Offline Installation

Download offline installation package files

Extraction code: 04s2

Upload offline installation package

rabbitmq-install directory uploaded to/root

Switch to rabbitmq-install directory

cd rabbitmq-install


rpm -ivh *.rpm

2. Online Installation

Ensure successful installation of yum

If yum hasn't been installed yet -- Add a yum source for Ali to the linux--CentOS system

Installation steps

rpm --import

# centos7 uses this
cat <<EOF > /etc/yum.repos.d/rabbitmq.repo

# centos6 uses this
cat <<EOF > /etc/yum.repos.d/rabbitmq.repo

yum makecache

yum install socat


rpm -ivh erlang- --force --nodeps

yum install rabbitmq-server

From RabbitMQ's official manual --->This one step at a time requires you to do is not all copy and paste so simple!!

3. Preliminary configuration of RabbitMQ

Start RabbitMQ Server

# Set up service, start automatically
systemctl enable rabbitmq-server

# Start Services
systemctl start rabbitmq-server

Start RabbitMQ management interface

# Open Management Interface Plug-in
rabbitmq-plugins enable rabbitmq_management

# Firewall opens 15672 management port
firewall-cmd --zone=public --add-port=15672/tcp --permanent
firewall-cmd --reload

Access server's management interface port--

The page shows success, indicating that the server started successfully!!!

Add User

# Add User
rabbitmqctl add_user admin admin

# New User Sets User as Super Administrator
rabbitmqctl set_user_tags admin administrator

Set Access Permissions


Figure 2

Figure 3 (Display Setup Successful!!)

Open Client Connection Port

# Open Client Connection Port
firewall-cmd --zone=public --add-port=5672/tcp --permanent
firewall-cmd --reload
Introduction to Primary Ports
  • 4369 - erlang Discovery
  • 5672 - client End Port
  • 15672 - ui Port for Management Interface
  • 25672-server Internal Communications Port

Next will be an explanation of the six working modes of RabbitMQ6. Please pay attention and wait!!!

Tags: RabbitMQ RPM yum firewall

Posted on Fri, 03 Apr 2020 16:26:39 -0700 by anwoke8204