Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of deploying RabbitMQ in CentOS7 system Environment

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Today, the editor will bring you an article on deploying RabbitMQ in the CentOS7 system environment. The editor thinks it is very practical, so I will share it for you as a reference. Let's follow the editor and have a look.

1. Turn off the firewall and Selinux

Setenforce 0

Systemctl stop firewalld

two。 Update epel Feed

Yum-y install epel-release

3. Download RabbitMQ

Yum-y install rabbitmq-server

4. View installed plug-ins

Rabbitmq-plugins list

5. Start the management service

Rabbitmq-plugins enable rabbitmq_management

6. Start the rabbitmq service

Systemctl start rabbitmq-server

7. Webpage login

Visit the website: http://192.168.0.103:15672

Deployment on CentOS 8 system: 1. Turn off the firewall and Selinux

Setenforce 0

Systemctl stop firewalld

two。 Configure yum Feed

Cd / etc/yum.repos.d/ # enter the directory

Vim rabbitmq-erlang.repo

[rabbitmq-erlang] name=rabbitmq-erlangbaseurl= https://dl.bintray.com/rabbitmq-erlang/rpm/erlang/21/el/7gpgcheck=1gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.ascrepo_gpgcheck=0enabled=1

Vim rabbitmq.repo

[bintray-rabbitmq-server] name=bintray-rabbitmq-rpmbaseurl= https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/8/gpgcheck=0repo_gpgcheck=0enabled=13. Download RabbitMQ

Yum-y install rabbitmq-server

4. View installed plug-ins

Rabbitmq-plugins list

5. Start the management service

Rabbitmq-plugins enable rabbitmq_management

6. Start the RabbitMQ service

Systemctl start rabbitmq-server

7. Webpage login

Visit the website: http://192.168.0.102:15672

Login result: unable to log in using guest certificate number

8. Troubleshooting process 1. View the log

Vim / var/log/rabbitmq/rabbit@centos8.log

Solution: modify the configuration file

Vim / usr/lib/rabbitmq/lib/rabbitmq_server-3.8.2/ebin/rabbit.app

Systemctl restart rabbitmq-server.service # restart the service

Visit the web page test:

Result: successfully visited and modified successfully! RabbitMQ related commands

Systemctl start rabbitmq-server # enabled

Systemctl stop rabbitmq-server # shutdown

Systemctl status rabbitmq-server View status

Systemctl restart rabbitmq-server # restart

Rabbitmqctl add_user admin password # create user

# Grant permissions

Rabbitmqctl set_user_tags admin administrator

Rabbitmqctl set_permissions-p / admin ".

These are the methods of deploying RabbitMQ in the CentOS7 system environment, which are more comprehensive, and I believe there are quite a few tools that we may see or use in our daily work. Through this article, I hope you can gain more.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report