Docker部署rabbitmq

rabbitmq

Posted by XJ on January 5, 2020

1:拉取rabbitmq镜像

docker pull rabbitmq:management

2:运行镜像

docker run -d --name rabbitmq --publish 5671:5671 \
 --publish 5672:5672 --publish 4369:4369 --publish 25672:25672 --publish 15671:15671 --publish 15672:15672 \
rabbitmq:management

3:访问管理界面

http://[宿主机IP]:15672

4:修改管理员密码

docker exec -it myrabbit1 bash     #进入容器
rabbitmqctl  list_users      #查看用户列表
rabbitmqctl  change_password  Username  'Newpassword'     #修改用户密码