Windows下RabbitMQ安装及注意事项

时间:2018-11-03
本文章向大家介绍Windows下RabbitMQ安装及注意事项 ,需要的朋友可以参考一下

RabbitMQ is the most widely deployed open source message broker.
With more than 35,000 production deployments of RabbitMQ world-wide at small startups and large enterprises, RabbitMQ is the most popular open source message broker.
RabbitMQ is lightweight and easy to deploy on premises and in the cloud. It supports multiple messaging protocols. RabbitMQ can be deployed in distributed and federated configurations to meet high-scale, high-availability requirements.

下载

本文以rabbitmq3.7.4版本为例,来做简单的安装(windows).
rabbimq是Erlang语言开发,安装rabbitmq之前先安装配置Erlang语言开发环境,
然后下载rabbitmq安装包.

安装

点击exe一直下一步即可,进入sbin目录,执行rabbitmq-server.bat start 启动server 。默认没有图形界面,
执行

D:\rabbitmq_server-3.7.4\sbin>rabbitmq-plugins.bat enable rabbitmq_management
Enabling plugins on node rabbit@PC-2018:
rabbitmq_management
The following plugins have been configured:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
Applying plugin configuration to rabbit@PC-2018...
The following plugins have been enabled:
  rabbitmq_management
  rabbitmq_management_agent
  rabbitmq_web_dispatch
set 3 plugins.

安装web插件.重新启动rabbitmq,

D:\rabbitmq_server-3.7.4\sbin>rabbitmq-server.bat start

  ##  ##
  ##  ##      RabbitMQ 3.7.4. Copyright (C) 2007-2018 Pivotal Software, Inc.
  ##########  Licensed under the MPL.  See http://www.rabbitmq.com/
  ######  ##
  ##########  Logs: C:/Users/xwolf/AppData/Roaming/RabbitMQ/log/RABBIT~1.LOG
                    C:/Users/xwolf/AppData/Roaming/RabbitMQ/log/rabbit@PC-2018_upgrade.log

              Starting broker...
 completed with 3 plugins.

上述信息,表示rabbitmq正常启动.

rabbitmq 默认图形界面地址http://localhost:15672,默认用户名、密码为guest/guest.