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

Links: https://pan.baidu.com/s/1akc-vbTrgbtsIDi1TsWofA
Extraction code: 04s2

Upload offline installation package

rabbitmq-install directory uploaded to/root

Switch to rabbitmq-install directory

cd rabbitmq-install

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 https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc


# centos7 uses this
cat <<EOF > /etc/yum.repos.d/rabbitmq.repo
[bintray-rabbitmq-server]
name=bintray-rabbitmq-rpm
baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.7.x/el/7/
gpgcheck=0
repo_gpgcheck=0
enabled=1
EOF


# centos6 uses this
cat <<EOF > /etc/yum.repos.d/rabbitmq.repo
[bintray-rabbitmq-server]
name=bintray-rabbitmq-rpm
baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.7.x/el/6/
gpgcheck=0
repo_gpgcheck=0
enabled=1
EOF


yum makecache

yum install socat

wget https://github.com/rabbitmq/erlang-rpm/releases/download/v21.3.8.12/erlang-21.3.8.12-1.el7.x86_64.rpm

rpm -ivh erlang-21.3.8.12-1.el7.x86_64.rpm --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-- http://192.168.64.140:15672

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


Fig.1


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