---
# System prepended metadata

title: RabbitMQ 安裝操作 for Win C#
tags: [我怕我忘記]

---

Windows Server 2019 install RebbitMQ 

https://hackmd.io/@ybMF0EbLStesNM2CJMxIIg/ryfzCQlYi
https://isdaniel.github.io/rabbitmq-fanout/
https://blog.yowko.com/shared-config/

系統安裝
* Erlang ⇒ RabbitMQ 是以此語言撰寫，故須完成環境安裝 [Link](https://www.erlang.org/downloads)
安裝後，設定win環境變數
![](https://hackmd.io/_uploads/Hk8PrHXT2.png)
```
變數名稱：ERL_HOME
變數值：C:\Program Files\Erlang OTP  (安裝路徑)
```
![](https://hackmd.io/_uploads/B1Jwam26n.png)
```
%ERL_HOME%\bin
```
在cmd中下erl指令，確認是否設定完成
![](https://hackmd.io/_uploads/HyN39B76h.png)

* RabbitMQ ⇒ 主角R [Link](https://www.rabbitmq.com/download.html)
確認RabbitMQ是否安裝完成
```
sc query "RabbitMQ"
```
![](https://hackmd.io/_uploads/r1EY5rm6h.png)
啟用RabbitMQ 
對外預設port 5671
```
cd C:\Program Files\RabbitMQ Server\rabbitmq_server-3.12.3\sbin
.\rabbitmq-plugins.bat enable rabbitmq_management 
```
![](https://hackmd.io/_uploads/SJaJyLmTh.png)

```
http://localhost:15672
guest 
guest 
```
![](https://hackmd.io/_uploads/r1KE1876n.png)



