preface

Why isn’t anyone talking about the minutiae of installing message queue RabbitMQ? Today, take the installation in the test environment as an example, talk about the latest version, installation documentation.

1 File Upload

Upload directory: /home/ftpuser

Build installation directory: mkdir /usr/local/src/app_install

The installation files are as follows:

type The file name version Support system
Erlang Erlang 22.3.4.10-1. El7. X86_64. RPM 22.3.4.10-1 Linux 7
RabbitMQ The rabbitmq server – 3.8.8-1. El7. Noarch. RPM 3.8.8.1 Linux 7

Note: Erlang is a necessary dependency for RabbitMQ installation and will need to be installed manually. This installation is based on the RPM source and the latest version as of 2020/09/10

2 install Erlang

Perform the installation

CD /usr/local/src/app_install yum install erlang-22.3.4.10-1.el7.x86_64. RPMCopy the code

The installation effect is as follows

Check the installation

erl -v
Copy the code

Three install the RabbitMQ

Perform the installation

CD /usr/local/src/app_install yum install rabbitmq-server-3.8.8-1.el7.noarch. RPMCopy the code

The installation effect is as follows

Configuring System Services

chkconfig rabbitmq-server on
Copy the code

Start the test

/sbin/service rabbitmq-server start
ps -ef | grep rabbitmq
Copy the code

Start the Web Management UI

rabbitmq-plugins enable rabbitmq_management
Copy the code

restart

service rabbitmq-server stop
service rabbitmq-server start
Copy the code

The test page

Go to http://ip:15672/

The default user name and password are guest and guest

List the user

rabbitmqctl list_users
Copy the code

New users

rabbitmqctl add_user "center" "123456"
Copy the code

User name: Center

Password: 123456

Grant permissions

rabbitmqctl set_permissions -p "/" "center" ".*" ".*" ".*"
Copy the code
rabbitmqctl set_user_tags "center" "administrator"
Copy the code

Delete user

rabbitmqctl  delete_user guest
Copy the code

The page display

The installation is complete. For other configurations, use the default Settings