sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
metadata_expire=300
Rabbitmq-server install qilish quydagi sorov chiqadi y bosiladi
yum install rabbitmq-server
start beriladi va enable qilib qoyiladi
systemctl start rabbitmq-server
systemctl enable rabbitmq-server
systemctl status rabbitmq-server
Managementni yoqib qoyamiz barcha nodelarda chunki bu web browseda node larda haqida malumotlarni korsatib turadi
rabbitmq-plugins enable rabbitmq_management
restart beriladi
systemctl restart rabbitmq-server
INSTALL QILIB BOLGAN KEYIN RABBITMQ CLUSTER KOTARIB KORAMIZ QUYDAGI DOCUMENTATSIYA ORQALI; UCHTA NODE YANI SERVERDAN FOYDALANILGAN
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
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:
Rabbitmq ga restart beriladi va keyin app stop qilinadi workerlarni clusterga qoshish boshlanadi
sudo systemctl restart rabbitmq-server
Do'stlaringiz bilan baham: |