标签:
可以参考:在 Windows 上安装Rabbit MQ 指南
本文RabbitMQ版本为3.6.1
"C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmq-plugins.bat" enable rabbitmq_management
"C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmqctl.bat" add_vhost TestHost
1. 创建用户TestUser:
"C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmqctl.bat" add_user TestUser TestPassword
2. 设置TestUser为管理员:
"C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmqctl.bat" set_user_tags TestUser administrator
3. 为TestUser添加TestHost虚拟机的权限:
"C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmqctl.bat" set_permissions -p TestHost TestUser ".*" ".*" ".*"
标签:
原文地址:http://www.cnblogs.com/victorbu/p/5772420.html