Install and deploy 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
2. Next execute the following command to formally install the erlang environment:
yum -y install erlang
Next, you can directly execute the following commands to test whether erlang is installed successfully:erl
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
Download completed
2. Then execute the following command to formally install rabbitmq
yum -y install rabbitmq-server
- Set RABBITMQ to boot up:
chkconfig rabbitmq-server on
- Start the RABBITMQ service:
systemctl start rabbitmq-server.service
- Open WEB visual management plug-in:
rabbitmq-plugins enable rabbitmq_management
- View RabbitMQ service status:
systemctl status rabbitmq-server.service
- Set user and password:
rabbitmqctl add_user username password
- Set administrator permissions for users:
rabbitmqctl set_user_tags username administrator
Use ip address +15672 (port number) to access the management page
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.