我的RabbitMQ安装位置是:C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.6
为rabbitmq添加用户
C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.6\sbin> .\rabbitmqctl.bat add_user x2m 123456
分配用户角色
C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.6\sbin> .\rabbitmqctl.bat set_user_tags x2m administrator
启用管理界面
C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.6\sbin>rabbitmq-plugins.bat enable rabbitmq_management
启用远程登陆
编辑文件 C:\Program Files (x86)\RabbitMQ Server\rabbitmq_server-3.5.6\etc\rabbitmq.config.example
加入如下行
{loopback_users, [x2m]},
重启rabbitmq-server服务
登陆地址
http://192.168.1.103:15672