CentOS7 installation and deployment message queue RabbitMQ

One, first install the ERLANG environment

Because RabbitMQ needs the support of the erlang environment, erlang must be installed first.

1. The first is to install its corresponding yum repo

Use the command directly:

curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash

Insert picture description here

2. Next execute the following command to formally install the erlang environment:

yum  -y install erlang

Insert picture description here

Next, you can directly execute the following commands to test whether erlang is installed successfully:erl
Insert picture description here

Two, install RABBITMQ

1. Next, install rabbitmq officially, first of all, install its corresponding yum repo

curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash

Insert picture description here
Download completed
Insert picture description here

2. Then execute the following command to formally install rabbitmq

yum -y install rabbitmq-server

Insert picture description here

  1. Set RABBITMQ to boot up:chkconfig rabbitmq-server on
  2. Start the RABBITMQ service:systemctl start rabbitmq-server.service
  3. Open WEB visual management plug-in:rabbitmq-plugins enable rabbitmq_management
  4. View RabbitMQ service status: systemctl status rabbitmq-server.service
  5. Set user and password:rabbitmqctl add_user username password
  6. Set administrator permissions for users:rabbitmqctl set_user_tags username administrator

Use ip address +15672 (port number) to access the management page
Insert picture description here
RabbitMQ installation and deployment is now complete!
(RabbitMq can also be deployed using Docker)
Finally, please pay attention to my official account to exchange and learn more Java experience and technology.
Insert picture description here

Guess you like

Origin blog.csdn.net/DreamsArchitects/article/details/108308319