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


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

sudo rabbitmqctl stop_app

sudo rabbitmqctl join_cluster rabbit@master_hostname
sudo rabbitmqctl start_app




Worker2 serverda:

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


sudo systemctl restart rabbitmq-server
sudo rabbitmqctl stop_app

sudo rabbitmqctl join_cluster rabbit@master_hostname
sudo rabbitmqctl start_app


  • bu yerda ham master server nomi boladi masalan menda rabbit@masterdb boldi chunki osha serverni master qilib olish uchun ishlatiladi.



  1. clusterning statusini korishimiz mumkin: har bir serverda


rabbitmqctl cluster_status

Master serverda:::


  1. rabbitmqctl add_user admin password



  • bu qadam rabbitmq cluster uchun yangi user qoshib olamiz web browserga kirishda ishlatiladigan user va password bolaaadi master serverda qilinadi



  1. admin userni administrator qilib tayinlash


rabbitmqctl set_user_tags admin administrator


  1. bu bilan esa huquqlarni excute qilish


rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"


  1. rabbitmqctl delete_user guest  eski guestni ochirib tashlash kerak



  1. rabbitmqctl list_usersuserlarni korish mumkin



Web browserdan tekshirish mumkin buning uchun http://host_address:15672 qilib kirib tekshirish mumkin. 15672 default port



CHECKING QILISH JARAYONI : Buning uchun quyidagi fileni yuklab olamiz


  1. 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