In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
How to deploy rabbitmq cluster, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Rabbitmq cluster deployment 1. Rabbitmq installation
Installation related dependencies
Yum-y install make gcc gcc-c++ kernel-devel M4 ncurses-devel openssl-devel unixODBC-devel
Install erlang
Wget https://packagecloud.io/rabbitmq/erlang/packages/el/7/erlang-21.3.8.2-1.el7.x86_64.rpmrpm-ivh erlang-21.3.8.2-1.el7.x86_64.rpm
Install rabbitmq
Wget https://packagecloud.io/rabbitmq/rabbitmq-server/packages/el/7/rabbitmq-server-3.7.13-1.el7.noarch.rpmyum install rabbitmq-server-3.7.13-1.el7.noarch.rpm
II. Basic configuration of Rabbitmq
Set up boot boot
Systemctl enable rabbitmq-server
Install the management plug-in
Rabbitmq-plugins enable rabbitmq_management
Visit localhost:15672 to access the rabbitmq management interface
Add users (guset users can only log in with localhost by default)
Rabbitmqctl add_user admin passwordrabbitmqctl set_permissions-p / admin ". *" rabbitmqctl set_user_tags admin administrator
III. Rabbitmq cluster configuration
Modify the hosts file to add the cluster node hosts
192.168.1.1 rmq-broker-test-1192.168.1.2 rmq-broker-test-2
Start the rabbitmq service
Systemctl start rabbitmq-server
View current rabbitmq status
# View Node status rabbitmqctl status# View Cluster status rabbitmqctl cluster_status
Add backup nodes to the cluster
Rabbitmqctl stop_apprabbitmqctl resetrabbitmqctl join_cluster rabbit@rmq-broker-test-1rabbitmqctl start_app
Create a mirror queue and check the cluster status
# prevent node failure from causing a single point
Rabbitmqctl set_policy ha-all "^"'{"ha-mode": "all"}'
# View cluster status
Rabbitmqctl cluster_status
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.