In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1.1 dependent on the environment
1. 3 Centos 7 machines with hostnames A, B and C
2. IP addresses: A -172.20.0.2 B -172.20.0.3 C -172.20.0.4
3. Modify the hosts file as follows:
vim /etc/ho RabbitMq cluster install sts172.20.0.2 A 172.20.0.3 B 172.20.0.4 C
4. Ensure that all nodes are interconnected
1.2 Installation deployment (all nodes) 1. Install dependencies
yum install -y epel-release2. Download esl-erlang rpm package
wget https://packages.erlangsolutions.com/erlang/rpm/centos/7/x86_64/esl-erlang_22.1.71~centos~7_amd64.rpm3. Install esl-erlang
yum install esl-erlang_22.1.7-1_centos_7_amd64.rpm4. Verify esl-erlang
erl -version "Erlang (SMP,ASYNC_THREADS,HIPE) (BEAM) emulator version 10.5.5" appears to prove successful installation 5. Download rabbitmq rpm package
wget https://github.com/rabbitmq/rabbitmqserver/releases/download/v3.8.1/rabbitmq-server-3.8.11.el7.noarch.rpm6. Install socat dependencies
yum install socat7. Install rabbitmq
rpm -ivh rabbitmq-server-3.8.1-1.el7.noarch.rpm1.3 Open plug-in (all nodes)
1. activate the plugin
rabbitmq-plugins enablerabbitmq_managementrabbitmq-plugins list1.4 Start (all nodes) 1. Power on:
chkconfig rabbitmq-server on2. View startup status:
rabbitmqctl status3. Start, close, restart:
systemctl enable rabbitmq-server.servicesystemctl start rabbitmq-server.service systemctl stop rabbitmq-server.service systemctl restart rabbitmq-server.service4. rabbitmq activated
rabbitmqctl start_app1.5 plus cluster
1. Modify.erlang.cookie
chmod 600 /var/lib/rabbitmq/.erlang.cookievim /var/lib/rabbitmq/.erlang.cookie`Keep all node cookies consistent`
2. Node B execution
rabbitmqctl stop_apprabbitmqctl join_cluster --ram rabbit@Arabbitmqctl start_app
3. C-node execution
rabbitmqctl stop_app rabbitmqctl join_cluster --ram rabbit@A rabbitmqctl start_app
4. View Cluster Status (Node A)
#View cluster status
rabbitmqctl cluster_status
5. Add mirroring policy (node A)
rabbitmqctl set_policy ha-all "^" '{"ha-mode":"all"}'1.6 New User (Node A)
1. Add rabbitmq user
rabbitmqctl add_user admin 123456rabbitmqctl set_user_tags admin administratorrabbitmqctl set_permissions -p / admin ".* " ".* " ".* "
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.