RabbitMQ brief + Windows installation environment

Article Directory

1, RabbitMQ Introduction 2, RabbitMQ and other MQ What is the difference 3, RabbitMQ installation environment 3.1 Installing Erlang 3.2 Server-install RabbitMQ 4. RabbitMQ Management Platform Introduction

1, RabbitMQ Profile

RabbitMQ is an erlang developed by the AMQP (Advanced Message Queue) is an open source implementation. AMQP appeared actually to be the needs of the masses, although there are a lot of open standards (such as COBAR of IIOP, or SOAP, etc.) in the world synchronization message to communicate in, but in an asynchronous message processing is not the case, only large enterprises there are some commercial implementations (such as Microsoft's MSMQ, IBM's Websphere MQ, etc.), and therefore, in June 2006, Cisco, Redhat, iMatix jointly developed the open standard AMQP.

RabbitMQ is developed by RabbitMQ Technologies Ltd and provides commercial support.

The company was SpringSource (a division of VMWare) acquired in April 2010. Pivotal is incorporated in May 2013. In fact, on VMWare, Pivotal and EMC is one of nature. The difference is that VMWare is separately listed subsidiary, and Pivotal is the integration of some of the resources of EMC, and now there is no market.

RabbitMQ official website: http://www.rabbitmq.com
Baidu Encyclopedia AMQP protocol description: https://baike.baidu.com/item/AMQP/8354716?fr=aladdin

Note: RabbitMQ erlang is the use of language development, we must have before they can run erlang environment

2、RabbitMQ与其他MQ有什么不同

  ActiveMQ RabbitMQ Kafka
优点 遵循JMS规范,安装方便 继承Erlang天生的并发性,最初用于金融行业,稳定性和安全性有保障 依赖zk,可动态扩展节点,高性能、高吞吐量、无限扩容、消息可指定追溯
缺点 有可能会丢失消息,不再维护,重心在下一代产品apole Erlang语言难较大,不支持动态扩展 严格的顺序机制,不支持消息优先级,不支持标准的消息协议,不利于平台迁移
支持协议 AMQP,OpenWire,Stomp,XMPP AMQP  
应用 适合中小企业,不适合上千个队列的应用 适合对稳定性要求高的企业级应用 应用在大数据日志处理或对实时性、可靠性(少量数据丢失)要求较低的应用场景

3、RabbitMQ环境安装

3.1 安装erlang

下载 otp_win64_x.x.exe Windows 版本,双击运行安装

  1. 下载并安装 Erlang,下载地址:http://www.erlang.org/download
  2. 配置 Erlang 环境变量信息
    新增环境变量 ERLANG_HOME ,值为 erlang 的安装地址
    %ERLANG_HOME%\bin 加入到path中
  3. 下载并安装 RabbitMQ,下载地址:http://www.rabbitmq.com/download.html

我提供的下载地址:https://www.lanzous.com/b939528

注意: RabbitMQ 它依赖于Erlang,需要先安装Erlang。

安装配置完环境后,在控制台输入 erl,如果出现类似下图所示字样,说明安装成功。

3.2 安装rabbitmq-server

下载 rabbitmq-server-x.x.x.exe Windows 版本,双击运行安装

rebbitmq 安装一路默认即可。

rabbitMq默认自启动

可以修改rabbitmq的配置文件,也可以用默认配置运行。在开始菜单栏里可以看到运行指令reinstall/remove/start/stop

或者直接打开RabbitMQ Command Prompt命令框。

输入 rabbitmqctl status 查看是否启动成功,如下图所示为启动成功。

4. RabbitMQ管理平台介绍

RabbitMQ 管理平台地址:http://127.0.0.1:15672

默认账号:guest/guest (用户可以自己创建新的账号)

浏览器打开后发现如下图所示:

这是时候我们需要打开命令行窗口 cmd

输入 rabbitmq-plugins enable rabbitmq_management 指令添加可视化插件。

再次访问

默认账号:guest/guest (用户可以自己创建新的账号)

备注:可以运行 rabbitmqctl stop 命令来停止服务
可以运行 rabbitmq-server -detached命令来重启服务并后台运行。

RabbitMQ的日志信息,可以在 C:/Users/Administrator/AppData/Roaming/RabbitMQ/log/文件夹下进行查看,如:C:/Users/Administrator/AppData/Roaming/RabbitMQ/log/[email protected]

Guess you like

Origin www.cnblogs.com/niceyoo/p/11433020.html