docker下安裝rabbitmq
1货抄、搜索redis鏡像
docker search rabbitmq:management
2.拉取鏡像(下載elasticsearch:5.6.8版本)
#拉取最新版本可能會(huì)報(bào)錯(cuò)
docker pull rabbitmq:management
3.創(chuàng)建容器
docker run -d -p 5672:5672 -p 15672:15672 -p 5671:5671 -p 4369:4369 -p 15671:15671 -p 25672:25672 --name unicorn_rabbitmq rabbitmq:management
#rabbitmq需要有映射以下端口: 5671 5672 4369 15671 15672 25672
#15672 (if management plugin is enabled) 15671 management監(jiān)聽(tīng)端口
#5672, 5671 (AMQP 0-9-1 without and with TLS) 4369 (epmd) epmd 代表 Erlang 端口映射守護(hù)進(jìn)程 25672 (Erlang #distribution)