Windows RabbitMQ安装

2019-03-11 23:53:43

Windows RabbitMQ安装

安装Erlang

配置环境

  • ERLANG_HOME - D:\dev_tools\erl7.1\erts-7.1
  • path - %ERLANG_HOME%

安装RabbitMQ

默认端口为15672

配置环境

  • 激活 RabbitMQ’s Management Plugin可视化

打开dos,输入"‪D:\dev_tools\RabbitMQ Server\rabbitmq_server-3.6.5\sbin\rabbitmq-plugins.bat" enable rabbitmq_management

  • 完成提示
  1. The following plugins have been enabled:
  2. mochiweb
  3. webmachine
  4. rabbitmq_web_dispatch
  5. amqp_client
  6. rabbitmq_management_agent
  7. rabbitmq_management
  8. Applying plugin configuration to rabbit@DESKTOP-5J52E61... started 6 plugins.
  • 管理员身份启动服务net stop RabbitMQ && net start RabbitMQ

  • 创建用户,密码,绑定角色

    • 进入安装目录下的sbin

      1. cd /d D:\dev_tools\RabbitMQ Server\rabbitmq_server-3.6.5\sbin
  • 查看已有用户及用户的角色:rabbitmqctl.bat list_users

  • 新增用户:rabbitmqctl.bat add_user username password

  • 再次查看用户列表

    1. D:\dev_tools\RabbitMQ Server\rabbitmq_server-3.6.5\sbin>rabbitmqctl.bat list_users
    2. Listing users ...
    3. rabbit []
    4. guest [administrator]
  • 将用户rabbit授权为超级管理员

    1. rabbitmqctl.bat set_user_tags rabbit administrator
  • 更改用户密码:rabbitmqctl change_password userName newPassword

  • 删除用户:rabbitmqctl.bat delete_user username

访问地址:http://localhost:15672/

参考地址


0
0
0

添加评论

正在回复:
取消
0
0
0
0