Language/Java

RabbitMQ Multi Instance

아르비스 2015. 6. 12. 13:43

RabbitMQ multi Instance

 

1.  Verify configuration

config file(s) : /etc/rabbitmq/rabbitmq.config

 

/etc/rabbitmq/ * /etc/rabbitmq2/  (3) 로 복사

>vi rabbitmq-env.conf

#rabbitmq-env.conf

RABBITMQ_NODE_PORT=5672   (6672, 7672)

RABBITMQ_MNESIA_BASE=/block/dbfiles  (/block/dbfiles2,  /block/dbfiles3 )

RABBITMQ_LOG_BASE=/block/logs/rabbitmq  (/block/logs/rabbitmq2, /block/logs/rabbitmq3)

 

- block 추가

Mkdir /block/dbfile2  (3)

Mkdir /block/logs/rabbitmq2  (3)