下载安装Eralang
下载安装rabbitMq
默认安装的Rabbit MQ 监听端口是5672
激活Rabbit MQ's Management Plugin
"C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.2.3\sbin\rabbitmq-plugins.bat" enable rabbitmq_management
安装STOMP服务
"C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.2.3\sbin\rabbitmq-plugins.bat" enable rabbitmq_web_stomp
"C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.2.3\sbin\rabbitmq-plugins.bat" enable
rabbitmq_web_stomp_examples
重启服务使之生效
net stop RabbitMQ && net start RabbitMQ
使用rabbitmqctl控制台命令来创建用户,密码,绑定权限
打开目录
cd c:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.2.3\sbin
查看用户列表
rabbitmqctl.bat list_vhosts
rabbitmqctl.bat list_users
添加用户名、密码
rabbitmqctl.bat add_user admin admin
rabbitmqctl.bat add_user 用户名 密码
设置用户角色
rabbitmqctl.bat set_user_tags admin administrator
rabbitmqctl.bat set_user_tags 用户名 administrator
设置访问权限
rabbitmqctl.bat set_permissions -p / admin ".*" ".*" ".*"
rabbitmqctl.bat set_permissions -p / 用户名 ".*" ".*" ".*"
使用浏览器打开http://localhost:15672访问Rabbit Mq的管理控制台
访