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 Building Local area Network Cluster based on centos7 in rabbitmq

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly explains "the method of building rabbitmq LAN cluster based on centos7". The content of this article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "rabbitmq LAN cluster building method based on centos7".

1: hardware preparation: 3 servers, ip192.1681.131 node1192.168.1.132 node2192.168.1.141 node3

2: modify / etc/hostname hostname

3: modify 3 server / ect/hosts files to identify each other

4: edit rabbitmq cookie

Edit the RabbitMQ ookie file to ensure that the cookie file of each node uses the same value, and you can read the cookie of the node1 node and copy it to the node2,node3 section. The default path of the cookie file is / var/lib/rabbitmq/.erlang.cookie or $HOME/erlang.cookie,cookie is equivalent to a key token. Rbbitmq nodes in the cluster need to exchange key tokens to obtain mutual authentication. If the nodes' key tokens are not consistent, there will be the following error when configuring the node. Pay attention to the bold font.

5: start 3 rabbitmq services, with the node3 node as the primary node, and execute the following commands on the node1,node2 node

Rabbitmqctl stop_app-stop service

Rabbitmqctl reset-reset the data in the current service, restore the default configuration, data loss, can not be executed

Rabbitmqctl join_cluster rabbit@node3-join the cluster or rabbitmqctl join_cluster rabbit@node3-- ram-join the cluster as memory storage. All the information of this node is stored in memory. The default is-- disk (disk).

Rabbitmqctl start_app-start the service

6: view the management interface

Thank you for your reading, the above is the content of "the method of building rabbitmq LAN cluster based on centos7". After the study of this article, I believe you have a deeper understanding of the method of building rabbitmq LAN cluster based on centos7, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Internet Technology

Wechat

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

12
Report