Windows & RabbitMQ:安装
可以参考:在 Windows 上安装Rabbit MQ 指南
本文RabbitMQ版本为3.6.1
- Step 1:安装Erlang
- Step 2:安装RabbitMQ
- Step 3:启用Management Plugin,重启RabbitMQ
"C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmq-plugins.bat" enable rabbitmq_management
- Step 4:新建虚拟主机TestHost:
"C:\Program Files\RabbitMQ Server\rabbitmq_server-3.6.1\sbin\rabbitmqctl.bat" add_vhost TestHost
- Step 5:创建用户、绑定权限:
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 ".*" ".*" ".*"