rabbitmq学习笔记

2017-08-20  本文已影响0人  kevin688

在Window7下安装rabbitmq

cd C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.10\sbin
rabbitmqctl status
rabbitmq-plugins enable rabbitmq_management
#查看用户列表
rabbitmqctl list_users
#添加用户
rabbitmqctl add_user test test
#设置用户角色
rabbitmqctl  set_user_tags  test  administrator
#授予管理员的权限
rabbitmqctl set_permissions -p "/" test ".*" ".*" ".*"
#删除用户
rabbitmqctl delete_user test

使用docker安装rabbitmq

# I am a complete /etc/rabbitmq/rabbitmq-env.conf file.
# Comment lines start with a hash character.
# This is a /bin/sh script file - use ordinary envt var syntax
RABBITMQ_NODENAME=honkon
# Version 0.0.1
FROM rabbitmq:3.6.10-management

#创建文件所在目录
RUN mkdir -p /var/lib/rabbitmq

#VOLUME
VOLUME ["/var/lib/rabbitmq"]

COPY rabbitmq-env.conf /etc/rabbitmq/rabbitmq-env.conf
上一篇下一篇

猜你喜欢

热点阅读