Rabbitmq-server ni install qilish unda erlang 3. dan yuqori bolishi kerak aks holda xatolik beradi quydagi korsatma erlang 25 va rabbitmq 11 version boladi


sslverify=1 sslcacert=/etc/pki/tls/certs/ca-bundle.crt


Download 263.59 Kb.
bet2/4
Sana17.06.2023
Hajmi263.59 Kb.
#1521083
1   2   3   4
Bog'liq
RabbitMQ cluster

sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300



  1. Rabbitmq-server install qilish quydagi sorov chiqadi y bosiladi


yum install rabbitmq-server




  1. start beriladi va enable qilib qoyiladi


systemctl start rabbitmq-server
systemctl enable rabbitmq-server
systemctl status rabbitmq-server


  1. Managementni yoqib qoyamiz barcha nodelarda chunki bu web browseda node larda haqida malumotlarni korsatib turadi


rabbitmq-plugins enable rabbitmq_management


  1. restart beriladi

systemctl restart rabbitmq-server

INSTALL QILIB BOLGAN KEYIN RABBITMQ CLUSTER KOTARIB KORAMIZ QUYDAGI DOCUMENTATSIYA ORQALI; UCHTA NODE YANI SERVERDAN FOYDALANILGAN




  1. birinchi firewall ni ochib qoyamiz barcha nodelarda quydagi portlarga:

sudo firewall-cmd --add-port=15672/tcp --permanent
sudo firewall-cmd --add-port=5672/tcp --permanent
sudo firewall-cmd --add-port={4369/tcp,25672/tcp} --permanent
sudo firewall-cmd --reload
sudo firewall-cmd --list-all


  1. Masterdan turib erlang.cookie filenni workerlarga copy qilamiz


scp /var/lib/rabbitmq/.erlang.cookie root@node02:/var/lib/rabbitmq/
scp /var/lib/rabbitmq/.erlang.cookie root@node03:/var/lib/rabbitmq/

Worker1 serverda:


  1. Rabbitmq ga restart beriladi va keyin app stop qilinadi workerlarni clusterga qoshish boshlanadi


sudo systemctl restart rabbitmq-server

Download 263.59 Kb.

Do'stlaringiz bilan baham:
1   2   3   4




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling