๊ธ€ ์ž‘์„ฑ์ž: ๋˜ฅํด๋ฒ .
๋ฐ˜์‘ํ˜•

RabbitMQ

 RabbitMQ๋Š” ๋‹ค๋ฅธ ์„œ๋ฒ„๋ผ๋ฆฌ ๋ฉ”์„ธ์ง€๋ฅผ ์‰ฝ๊ฒŒ ์ฃผ๊ณ ๋ฐ›๋Š” ๊ฒƒ์„ ๊ฐ€๋Šฅํ•˜๊ฒŒ ํ•˜๋Š” ๋ฉ”์„ธ์ง€ ํ๋‹ค.

์ค‘๊ฐ„์—์„œ ๋ฉ”์„ธ์ง€๋ฅผ Queuing ํ•˜์—ฌ ํ†ต์‹ ์„ ๊ฐ€๋Šฅ์ผ€ํ•˜๋Š”๋ฐ,

 

 ์™œ? ๊ตณ์ด ์ง์ ‘ ์„œ๋ฒ„๋ผ๋ฆฌ ํ†ต์‹ ํ•˜๋ฉด ๋  ๊ฒƒ์„ RabbitMQ๊ฐ™์€ ์†”๋ฃจ์…˜์„ ํ†ตํ•ด ํ†ต์‹ ์„ ํ•˜๋Š๋ƒ?

๋‚ด๊ฐ€ ๋Š๋‚€ ๋ฐ”๋กœ๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค.

 

1. ๋‹ค๋ฅธ ์–ธ์–ด๋กœ ์งœ์ธ ์„œ๋ฒ„ ํ†ต์‹ ์„ ์ข€ ๋” ์‰ฝ๊ฒŒ ๋งŒ๋“ค์–ด ์ค€๋‹ค.

 ๋‹ค๋ฅธ ์–ธ์–ด๋กœ ์งœ์—ฌ์ง„ ์„œ๋ฒ„๊ฐ€ ์žˆ๋Š”๋ฐ ์„œ๋กœ์˜ ์–ธ์–ด๊ฐ€ ๋‹ค๋ฅด๊ธฐ ๋•Œ๋ฌธ์— ํ”„๋กœํ† ์ฝœ์„ ๊ตฌ์„ฑํ•˜๊ธฐ ๋‚œ๊ฐํ•  ๋•Œ,

์ด RabbitMQ๋Š” ์ž์ฃผ ์‚ฌ์šฉ๋˜๋Š” ์–ธ์–ด๋“ค์„ ์ง€์›ํ•˜๊ธฐ ๋•Œ๋ฌธ์— ํ˜•์‹๋งŒ ๋งž์ถฐ์ค€๋‹ค๋ฉด ํ†ต์‹ ์„ ์ข€ ๋” ์†์‰ฝ๊ฒŒ ๋งŒ๋“ค์–ด์ค€๋‹ค.

 

2. ์„œ๋ฒ„ ์•ˆ์ •์„ฑ์„ ๋†’์—ฌ์ค€๋‹ค.

 A์„œ๋ฒ„์™€ B์„œ๋ฒ„๊ฐ€ ์žˆ๋‹ค๊ณ  ๊ฐ€์ •ํ•˜์ž. ์ด A์„œ๋ฒ„๋Š” ์‚ฌ์šฉ์ž์˜ ์š”์ฒญ์„ B์„œ๋ฒ„๋กœ ์ „๋‹ฌํ•˜๋Š” ๊ธฐ๋Šฅ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋Š”๋ฐ,

์–ด๋Š ๋‚  A์„œ๋ฒ„์—๊ฒŒ ๋งŽ์€ ์š”์ฒญ์ด ๋ชฐ๋ ค A์„œ๋ฒ„๋Š” B์„œ๋ฒ„์—๊ฒŒ ์š”์ฒญ์„ ์ „๋‹ฌํ•˜๊ฒŒ ๋˜๊ณ  B์„œ๋ฒ„๊นŒ์ง€ ๋ถ€ํ•˜๊ฐ€ ๊ฑธ๋ฆฌ๋Š” ์ƒํ™ฉ์ด ์™”๋‹ค.

์ด๋Ÿด ๋•Œ ์ค‘๊ฐ„์— ๋ฉ”์„ธ์ง€ ํ๊ฐ€ ์žˆ๋‹ค๋ฉด? B์„œ๋ฒ„๋Š” ๊ทธ๋ž˜๋„ ํ”ผํ•ด๋ฅผ ์ž…์ง€ ์•Š๊ณ  ๋ฉ”์„ธ์ง€ ํ๊ฐ€ ์ฃฝ๋Š” ์„ ์—์„œ ๋๋‚  ๊ฒƒ์ด๋‹ค.

 

 

์„ค์น˜

Windows 10 ๊ธฐ์ค€์œผ๋กœ ์„ค์น˜ํ•˜์˜€๋‹ค.

https://www.rabbitmq.com/install-windows.html#installer

์œ„์— ๋งํฌ์—์„œ ๋‹ค์šด๋กœ๋“œํ•˜๊ฑฐ๋‚˜,

์ด ๊ธ€์ด ์ž‘์„ฑ๋œ ์‹œ์ ์˜ ๊ธฐ์ค€ ์ตœ์‹  ๋ฒ„์ „์ธ 3.9.16 ๋ฒ„์ „์„ ์•„๋ž˜ ๋งํฌ๋กœ ๋‹ค์šด๋กœ๋“œํ•œ๋‹ค.

https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.9.16/rabbitmq-server-3.9.16.exe

 

 

Erlang could not be detected.
You must install Erlang before installing RabbitMQ.
Wold you like the installer to open a broweser window to the Erlang download site?

 

 ์„ค์น˜๋ฅผ ํ•˜๋ ค๋Š”๋ฐ ์œ„์™€ ๊ฐ™์€ ๊ฒฝ๊ณ ์ฐฝ์ด ์ถœ๋ ฅ๋œ๋‹ค๋ฉด,

์„ ํ–‰ ์„ค์น˜ ํ”„๋กœ๊ทธ๋žจ์œผ๋กœ Erlang์ด ํ•„์š”ํ•œ๋ฐ Erlang์ด ์„ค์น˜๋˜์ง€ ์•Š์€ ๊ฒƒ์ด๋ฏ€๋กœ

'์˜ˆ'๋ฒ„ํŠผ์„ ๋ˆŒ๋Ÿฌ ๋‹ค์šด๋กœ๋“œ ์‚ฌ์ดํŠธ์—์„œ ๋‹ค์šด๋กœ๋“œํ•œ๋‹ค.

https://www.erlang.org/downloads

 

 

์‹คํ–‰

 ์„ค์น˜๊ฐ€ ์™„๋ฃŒ๋˜๋ฉด RabbitMQ ์„œ๋น„์Šค๊ฐ€ ์ž๋™์ ์œผ๋กœ ์‹คํ–‰๋œ๋‹ค.

ํ˜น์‹œ๋‚˜ ์‹คํ–‰์ด ๋˜์ง€ ์•Š๋Š”๋‹ค๋ฉด ์œ„์™€ ๊ฐ™์ด [์‹œ์ž‘] ์ฐฝ์—์„œ [RabbitMQ Service - start]๋ฅผ ํด๋ฆญํ•˜์—ฌ ์‹คํ–‰์‹œํ‚จ๋‹ค.

 

RabbitMQ Server Management Plugin

 RabbitMQ Server๋ฅผ ๊ด€๋ฆฌํ•˜๋ ค๋ฉด rabbitmqctl.bat ๋ช…๋ น์–ด๋ฅผ ์‚ฌ์šฉํ•ด ์ปค๋งจ๋“œ ์ฐฝ์—์„œ

ํ•œ ๋•€ ํ•œ๋•€ ํƒ€์ดํ•‘ํ•˜์—ฌ ๊ด€๋ฆฌํ•ด์ค˜์•ผ ํ•˜๋Š” ํž˜๊ฒจ์›€์ด ์žˆ๋‹ค. 

 

 ์ด๋Ÿฌํ•œ ๊ณ ์ƒ์„ ์ค„์—ฌ์ฃผ๊ธฐ ์œ„ํ•ด GUI๋กœ RabbitMQ Server๋ฅผ ๊ด€๋ฆฌํ•˜๋Š” ํ”Œ๋Ÿฌ๊ทธ์ธ์„ ์„ค์น˜&์‹คํ–‰ํ•ด๋ณด์ž.

 

 RabbitMQ Command Prompt๋ฅผ ์‹œ์ž‘ ์ฐฝ์—์„œ ๊ฒ€์ƒ‰ํ•˜์—ฌ ์‹คํ–‰ํ•˜๊ฑฐ๋‚˜ ์œ„ Prompt๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†๋‹ค๋ฉด,

RabbitMQ๊ฐ€ ์„ค์น˜๋œ ๊ฒฝ๋กœ์˜ sbin ๋””๋ ‰ํ† ๋ฆฌ์— ๋“ค์–ด๊ฐ„๋‹ค.

 

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.16\sbin>

 ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ž…๋ ฅํ•œ๋‹ค.

 

C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.16\sbin>rabbitmq-plugins enable rabbitmq_management


Enabling plugins on node rabbit@cjwoov-1:
rabbitmq_management
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@cjwoov-1...
The following plugins have been enabled:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch

started 3 plugins.


C:\Program Files\RabbitMQ Server\rabbitmq_server-3.9.16\sbin>

 

ํ”Œ๋Ÿฌ๊ทธ์ธ์ด ์ ์šฉ๋˜์—ˆ๋Š”์ง€ ๋ธŒ๋ผ์šฐ์ €๋ฅผ ์‹คํ–‰์‹œํ‚จ ๋’ค

http://localhost:15672 ๋ฅผ ์ž…๋ ฅํ•ด์„œ ์ •์ƒ์ ์œผ๋กœ ๋™์ž‘ํ•˜๋Š”์ง€ ํ™•์ธํ•œ๋‹ค.

 

 ์ดˆ๊ธฐ ๊ณ„์ •์€ ๊ด€๋ฆฌ์ž ๊ถŒํ•œ์„ ๊ฐ€์ง„ guest๊ณ„์ •์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด  ์ œ๊ณตํ•œ๋‹ค.

Username guest
Password guest

 

 

์ฐธ๊ณ  ์‚ฌ์ดํŠธ

https://heodolf.tistory.com/50
๋ฐ˜์‘ํ˜•