rabbitmq安装
1. 安装erlang
yum install erlang xmlto
2. 安装rabbitmq rpm包
#wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitmq-server-3.6.6-1.el7.noarch.rpm下载完成后安装:#yum install rabbitmq-server-3.6.6-1.el7.noarch.rpm
3. 启动管理插件
rabbitmq-plugins enable rabbitmq_management
4. 启动
service rabbitmq-server start
5. 登录
ip:15672 用户名密码 guest
vim /etc/rabbitmq/rabbitmq.config写入信息,并保存[{rabbit, [{loopback_users, []}]}].
用户管理
1. 服务器启动与关闭
启动:service rabbitmq-server start关闭:service rabbitmq-server stop重启:service rabbitmq-server restart
新增 rabbitmqctl add_user admin admin删除 rabbitmqctl delete_user admin修改 rabbitmqctl change_password admin admin123
用户列表 rabbitmqctl list_users设置角色 rabbitmqctl set_user_tags admin administrator monitoring policymaker management
设置用户权限 rabbitmqctl set_permissions -p VHostPath admin ConfP WriteP ReadP查询所有权限 rabbitmqctl list_permissions [-p VHostPath]指定用户权限 rabbitmqctl list_user_permissions admin清除用户权限 rabbitmqctl clear_permissions [-p VHostPath] admin