【原创】RabbitMQ 之 Plugins(翻译)

      为了方便工作中使用,对 RabbitMQ 的【插件】相关文档进行了翻译,鉴于自己水平有限,翻译中难免有纰漏产生,如果疑问,欢迎指出探讨。此文以中英对照方式呈现。
官方原文:http://www.rabbitmq.com/plugins.html

========== 我是分割线 ============= 

Plugins

RabbitMQ supports a variety of plugins. This page documents the plugins that ship with RabbitMQ 3.0.1.
RabbitMQ 支持许多插件。当前页面列出了 RabbitMQ 3.0.1 可用的插件。

To enable plugins, use the rabbitmq-plugins tool:
可以通过命令行工具 [ rabbitmq-plugins使能插件: 

?


1

rabbitmq-plugins enable plugin-name

And to disable plugins again, use:
通过如下命令 去使能插件: 

?


1

rabbitmq-plugins disable plugin-name

You can see a list of which plugins are enabled with:
通过如下命令 查看哪些插件被使能了: 

?


1

rabbitmq-plugins list

Enabling or disabling plugins has no effect on a running RabbitMQ server. You will need to (re)start RabbitMQ for the enabled plugins to be activated.
在一个处于运行状态的 RabbitMQ server 上,执行使能或者去使能插件的命令是不会产生效果的。你需要(重新)启动 RabbitMQ 以便激活使能的插件

For more information on rabbitmq-plugins, consult the manual page.
更多关于命令行工具 rabbitmq-plugins 的信息,请参阅 [the manual page] 。

Note: Releases prior to 2.7.0 did not include plugins with the server, and any plugins that were installed were always activated; rabbitmq-plugins did not exist. You can download binary plugin files for older releases from the archive. Note further that we did not make binary plugins available prior to release 2.0.0.
注意:在 2.7.0 之前的 release 版本中并未随 server 包含相应插件,同时任何被安装的插件永远处于激活状态;命令行工具 rabbitmq-plugins 不存在。你可以从 [ the archive] 处下载到各种老版本支持的相应插件的二进制文件。另外需要注意的是,我们没有创建 release 2.0.0 之前的插件的二进制文件。 

Maintained Plugins
处于维护状态的插件

rabbitmq_auth_backend_ldap
Authentication / authorisation plugin using an external LDAP server. See the README for more information.

支持使用外部 LDAP 服务器进行鉴权/授权的插件。详细信息参阅 [README] 。

rabbitmq_auth_mechanism_ssl
Authentication mechanism plugin using SASL EXTERNAL to authenticate using SSL client certificates. See the README for more information.

该提供鉴权机制的插件,通过 SASL EXTERNAL 方式对使用 SSL 客户端证书的客户端进行鉴权。详细信息参阅 [README]

rabbitmq_federation
Scalable publish / subscribe messaging across WANs and administrative domains. See the page on the federation plugin for more information.

在管理域内,提供可伸缩的跨越 WAN 的 publish / subscribe 消息传输机制。详细信息参阅 [the page on the federation plugin]

rabbitmq_federation_management
Shows federation status in the management API and UI. Only of use when using rabbitmq_federation in conjunction with rabbitmq_management. In a heterogenous cluster this should be installed on the same nodes as rabbitmq_management.

在管理 API 和 UI 中显示 federation 状态信息。仅在同时使用 rabbitmq_federation 和 rabbitmq_management 插件时有效。在异源 cluster 中,该插件应该与 rabbitmq_management 插件安装于同一个 node 上。

rabbitmq_management
A management / monitoring API over HTTP, along with a browser-based UI. For more information, see the page on the management plugin.

基于浏览器 UI 提供基于 HTTP 协议的 管理/监控 API 。详细信息参阅 [the page on the management plugin] 。

rabbitmq_management_agent
When installing the management plugin on some of the nodes in a cluster, you must install rabbitmq_management_agent on all of the nodes in the cluster. You can install the full management plugin on as many of the nodes as you want.

当在 cluster 中的一些 node 上安装了管理插件时,你必须在 cluster 中的所有 node 上安装 rabbitmq_management_agent 插件。你可以任意多个 node 上安装全套管理相关插件。

rabbitmq_shovel
A plug-in for RabbitMQ that shovels messages from a queue on one broker to an exchange on another broker. Please see the page on the shovel plugin for more information or take a look at a working Shovel configuration.

该插件允许 RabbitMQ 将 message 从一个 broker 上的 queue 中 shovel 到另一个 broker 上的 exchange 上。详细信息请参阅 [the page on the shovel plugin] 或者参考 [a working Shovel configuration] 。

rabbitmq_shovel_management
Shows shovel status in the management API and UI. See the plugin README. Only of use when using rabbitmq_shovel in conjunction with rabbitmq_management. In a heterogenous cluster this should be installed on the same nodes as rabbitmq_management.

在管理 API 和 UI 中显示 shovel 状态信息。参阅插件的 [README] 。仅在同时使用 rabbitmq_shovel 和 rabbitmq_management 插件时有效。在异源 cluster 中,该插件应该与 rabbitmq_management 插件安装于同一个 node 上。

rabbitmq_stomp 
A gateway for exposing AMQP functionality via the STOMP protocol. (Some clients and servers supporting STOMP are listed here.) Please see the documentation and various blog articles about the adapter for more information on compiling and configuring it.

实现了通过 [STOMP] 协议提供 AMQP 功能的网关。(可以在 [here] 处查找支持 STOMP 协议的客户端和服务器。)请自行查阅相关[documentation]和各类 [blog articles],以学习如何编译和配置该功能。

Experimental Plugins
处于试验中的插件

Currently, all plugins below are experimental. This means we make no claims about their fitness for purpose or stability, though they are in general under active development.
当前,下表列出的插件都尚处于试验阶段,这意味着我们并未对其适用性或者稳定性做任何保证,尽管这些插件均以常规的有效方式开发。

rabbitmq_management_visualiser Broker topology visualiser plugin which is itself a plugin to the management plugin. Adds a Visualiser tab to the management web interface, which then flexibly and interactively displays channels, queues and exchanges, and the links between them.
rabbitmq_consistent_hash_exchange Consistent hash exchange type. Please see the README for more information.
rabbitmq_tracing Adds message tracing to the management plugin. Logs messages from the firehose in a couple of formats.
rabbitmq_jsonrpc_channel An AMQP-over-HTTP protocol binding for RabbitMQ and some Javascript libraries for interacting with RabbitMQ over HTTP.
rabbitmq_jsonrpc_channel_examples Adds some example web applications to rabbitmq_jsonrpc_channel: a shared whiteboard, a chat application, and some tests.
rabbitmq_web_stomp A bridge exposing rabbitmq_stomp to web browsers using WebSockets, using the WebSockets emulation / compatibility layer SockJS. Please see the page on the web-stomp plugin.
rabbitmq_web_stomp_examples Adds some basic examples to rabbitmq_web_stomp: a simple "echo" service and a basic canvas-based collaboration tool.
rabbitmq_mqtt An adapter implementing the MQTT 3.1 protocol. See the README for more details.

Installing Additional Plugins
安装额外的插件

Some plugins are also available from third party sources. Plugins will generally be available in two forms. The expected form for a packaged plugin will be a .ez erlang archive. Alternatively, more developmental plugins may be distributed directly from source control, in which case see Building Plugins below. Once you have one or more .ez archives for your plugins, you need to copy them to the plugins directiory.
一些插件同样可以从第三方处获得。插件通常以如下两种形式呈现:常规的形式为以 .ez 作为后缀的 erlang archive 包;另外一种,同时也是处于开发更新状态中的插件,可能会直接通过源码的形式进行发布,在这种情况下可以参考下面的 Building Plugins 内容。一旦你获得了一个或者多个 .ez 插件文件,你唯一需要做的就是将其拷贝到相应的插件目录中去。

The plugins directory location is determined by the RABBITMQ_PLUGINS_DIR variable. Its default value depends on how you installed RabbitMQ. Some common values are:
插件目录的位置由环境变量 RABBITMQ_PLUGINS_DIR 决定。其默认值依赖于你安装 RabbitMQ 的方式。一些常见的值如下表: 

Installation method Plugins directory
Debian/RPM packages /usr/lib/rabbitmq/lib/rabbitmq_server-version/plugins
Windows Typically C:\Program Files\RabbitMQ\rabbitmq_server-version\plugins (depending on where it was installed)
Macports ${install_prefix}/lib/rabbitmq/lib/rabbitmq_server-version/plugins (the Macports ${install_prefix} defaults to /opt/local)
Homebrew /usr/local/Cellar/rabbitmq/version/lib/rabbitmq/erlang/lib/rabbitmq-version/plugins
Generic Unix rabbitmq_server-version/plugins (depending on where it was installed)

The variable's meaning has changed in 2.7.0: whereas it previously referred to the directory of installed plugins, it now refers to the directory with all available plugins. The rabbitmq-plugins tool can only enable plugins found in this directory.
该变量的含义从版本 2.7.0 开始发生了改变:在 2.7.0 之前,其表示已安装插件所在的目录,改变之后的含义为可用插件所在目录。命令行工具 rabbitmq-plugins 只能使能在该目录下的可找到的插件。 

Plugins and Upgrades
插件升级

The enabled plugins configuration is preserved between upgrades, so there is no need to re-enable plugins after an upgrade, but because the plugins directory changes between versions, any third party plugins will need to be copied to the new directory. It's very possible that due to API changes you may need to check for updates to third party plugins at this point.
已使能插件的配置信息在 升级过程中会 被保留,故不需要在升级后重新使能插件,但是由于不同版本中规定的插件目录的位置可能不同,第三方插件将需要被手动拷贝到新目录。还有一种非常可能发生的情况是,由于 API 发生了改变,你可能需要自己去检查第三方插件并更新。 

Building Plugins
创建插件

You can also build RabbitMQ plugins from source. The sources for a particular version of the plugins is distributed in the same archive as the broker with that version. The source code repositories can all be found on our Mercurial server. See the plugin development guide for more information on building plugins from source.
你同样可以从源码创建插件。特定版本的插件的源码与相应版本 broker 的源码在同样的 archive 包中发布。源码仓库位于 [ Mercurial server] 中。参阅 [ plugin development] 中关于从源码编译插件的更多相关信息。

Note that plugins tend to be strongly bound to a particular version of rabbitmq-server. For example, if you are running RabbitMQ 3.0.1, you should check out all plugins with the Mercurial tag rabbitmq_v3_0_1.
值得注意的是,插件一般情况下是与特定版本的 rabbitmq-server 强绑定的。例如,如果你运行的是 RabbitMQ 3.0.1 版本,你应该检出所有带有 Mercurial tag 为 rabbitmq_v3_0_1 的插件。

时间: 2024-08-31 00:55:41

【原创】RabbitMQ 之 Plugins(翻译)的相关文章

【原创】RabbitMQ 之 Distributed brokers(翻译)

Distributed RabbitMQ brokers  AMQP and the other messaging protocols supported by RabbitMQ via plug-ins (e.g. STOMP), are (of course) inherently distributed - it is quite common for applications from multiple machines to connect to a single broker, e

【原创】遇到一个 rabbitmqctl 无法退出的问题

      这两天又遇到了一个奇怪的问题:简单的说,就是在 vmware 通过 rabbitmq 的 init 脚本无法正常 stop 掉相应的进程(实际上调用的是 rabbitmqctl stop <pidfile> ).  问题表现 确认 RabbitMQ 的运行状态和对应的 pid 文件内容  [root@gfsd1 ~]# [root@gfsd1 ~]# ps aux|grep rabbit root 11813 0.0 0.0 106368 1004 pts/2 S 19:21 0:

《站长兵法》之音乐类网站

站长 音乐类网站介绍: 如果说游戏类网站成为主流网站的原因是众多电脑爱好者是从先玩游戏再学电脑,甚至进入IT圈的话,那么音乐类网站更应该当仁不让的成为主流网站类型.其实根本不用多作解释,音乐是无国界的,很难相信人类一旦缺少了音乐,世界将变成怎样:同样,音乐类网站也可以分为多种小类: 1.综合音乐类这是音乐类网站中我们最容易想到的一种形式,但也是最难做的一种分类了,现在已经越来越少有站长愿意去做综合音乐站.因为这样的网站除了要具有下载.试听等内容外,还要配音乐相关新闻.歌手动态等等信息.所以综合音

不死草根也谈百度算法更新

百度近期对其算法不断地进行调整,我们站长的心情也跟随而上下波动.在这次调整中,很多网站的外链.收录量以及排名都不同程度的变化了,可以说几家欢喜,几家愁,而笔者是属于比较愁的,针对百度的优化,以前信心满满,而今感觉无所适从,有时真想自暴自弃从此退出草根,但坚韧的草根个性,不死的念想让我再一次静下心来去剖析.切身去体会此次调整. 体会一.百度更重视老站.对于新站波动会比较大,有时你会发现新站取得很好的排名,但是这种情况也是走马观花,很不稳定.另外,我们或多或少都能看到一些权重很高的老站,在不经常更新

姚金刚:百度最新十大SEO技巧

曾经写过一篇文章<百度近期表现猜想与总结>,这篇总结得很少,而且是一家之言,这次结合笔者在SEOWHY的帖子,来进行一个百度最新的SEO技巧总结,这里精选了十个,网友的智慧是无穷的,多发现多思维,有些技巧会让你眼前一亮. 一.据最近的一些观察,觉得网站中的专题页或者tag聚合页的权重不错,因此多给网站制作一些专题页面,不仅有利于聚合站内的文章,更是绝对的原创内容,应该会受到百度的青睐. 简评:关于权重的讨论,这篇无疑是很精彩的,值得大家一试. 二.如果英文好的话可以去找写文章翻译过来!这样的原

2014年50个程序员最适用的免费JQuery插件_jquery

有用的jQuery库是设计师和开发者之间一个非常熟悉的短语.这是现在互联网中最流行的JavaScript函数库之一.每个设计师和开发人员都应该知道它的重要性,而且熟悉它的功能和特点. jQuery几乎可以解决一个网站所有的问题它可以从做一个有吸引力和创意的网站解决所有那些阻碍你的问题如果你想解决任何跨浏览器的问题,那就必须收藏使用JavaScript函数库 jQuery库是Web开发人员的重要来源.你会发现很多互联网的jQuery插件都是免费使用的,但发现这些优秀的jQuery插件,需要你花费许

Html5 本地文件读取 API 研究使用过程中的意外发现 - MDN

Html5 本地文件读取 API 研究使用过程中的意外发现 - MDN 太阳火神的美丽人生 (http://blog.csdn.net/opengl_es) 本文遵循"署名-非商业用途-保持一致"创作公用协议 转载请保留此句:太阳火神的美丽人生 -  本博客专注于 敏捷开发及移动和物联设备研究:iOS.Android.Html5.Arduino.pcDuino,否则,出自本博客的文章拒绝转载或再转载,谢谢合作. 补充: 终于可以读出肉的眼能看懂的人类文字了!!! 经在 safari 7

云栖社区经验值及会员积分(消费币)获取规则

自改版以来,得到了广大用户的支持,为了感谢和奖励大家对社区的贡献,社区推出了经验值.等级.会员积份(消费币)功能.  用户经验值.等级和会员积分说明  用户在社区的等级由经验值决定,不同等级的用户将享有不同的权益和积分商城兑换资格,经验值和等级的对应关系如下. 会员积分及用户等级的作用如下(以下功能会陆续上线):  参与社区抽奖,好礼拿不停: 使用会员积分兑换精美礼品和优质图书,等级越高,可兑换的奖品就越多: 观看精品课程.在线图书等: 可使用会员积分发起悬赏提问,这样的问题能够得到更快速地回答

巧用利器Powershell,让数据库自动化运维事半功倍

作者介绍 许昌永,高级DBA,微软SQL Server MVP,十年以上SQL Server使用经验.曾就职于腾讯公司,从事了六年游戏行业SQL Server数据库开发和管理.目前就职于跨境电商DX.COM三年多,负责公司SQL Server和MongoDB的数据库架构设计.高可用部署.运维管理和性能优化等工作.翻译出版了书籍<PowerShell V3--SQL Server 2012数据库自动化运维权威指南>.   目前市场上针对SQLServer的图书,好的原创图书屈指可数,翻译的图书较