美文网首页
RabbitMQ3.7.6安装与配置(windows)

RabbitMQ3.7.6安装与配置(windows)

作者: 涵彧1688 | 来源:发表于2018-07-03 14:53 被阅读19次

1、Erlang

1.1)下载安装:http://www.erlang.org/

1.2)系统环境变量配置

2、RabbitMQ

2.1)下载安装:http://www.rabbitmq.com/

2.2)查看RabbitMQ运行状态:

执行命令 “rabbitmqctl status” 

发现错误如:Error: unable to perform an operation on node 'rabbit@PC-20170713JKLG'. Please see diagnostics information and suggestions below.

问题原因:系统中多处的.erlang.cookie内容信息不一致导致;

解决方案:用C:\Windows\System32\config\systemprofile\.erlang.cookie 覆盖 C:\Users\%USERNAME%\.erlang.cookie 即可;

正常运行的状态

2.3)激活 RabbitMQ's Management Plugin

rabbitmq-plugins.bat enable rabbitm q_management

2.4)启动RabbitMQ服务

点击运行

2.5)访问RabbitMQ管理界面

默认路径:http://localhost:15672

默认登录用户:guest/guest

2.6)创建用户,密码,绑定角色

查看已有用户列表:rabbitmqctl.bat list_users

新增用户:rabbitmqctl.bat add_user username password

绑定角色:rabbitmqctl.bat set_user_tags username administrator/monitoring/policymaker/management(超级管理员/监控者/策略制定者/普通管理者)

相关文章

网友评论

      本文标题:RabbitMQ3.7.6安装与配置(windows)

      本文链接:https://www.haomeiwen.com/subject/nknduftx.html