文档章节

【原创】RabbitMQ 之 Plugins(翻译)

摩云飞
 摩云飞
发布于 2012/12/12 17:32
字数 2236
阅读 1822
收藏 5

      为了方便工作中使用,对 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] 使能插件: 

rabbitmq-plugins enable plugin-name

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

rabbitmq-plugins disable plugin-name

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

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 的插件。



© 著作权归作者所有

摩云飞
粉丝 375
博文 534
码字总数 952694
作品 0
徐汇
程序员
私信 提问
【原创】rabbitmq-plugins用户手册(翻译)

为了方便工作中使用,周末抽空对 rabbitmq-plugins 用户手册进行了翻译,鉴于自己水平有限,翻译中难免有纰漏产生,如果疑问,欢迎指出探讨。 官方原文:http://www.rabbitmq.com/man/rabbi...

摩云飞
2012/11/12
1K
0
【原创】rabbitmq-echopid用户手册(翻译)

为了方便工作中使用,周末抽空对 rabbitmq-echopid 用户手册进行了翻译,鉴于自己水平有限,翻译中难免有纰漏产生,如果疑问,欢迎指出探讨。 官方原文:http://www.rabbitmq.com/man/rabbi...

摩云飞
2012/11/12
524
0
【原创】rabbitmq-server用户手册(翻译)

为了方便工作中使用,周末抽空对rabbitmq-server用户手册进行了翻译,鉴于自己水平有限,翻译中难免有纰漏产生,如果疑问,欢迎指出探讨。 官方原文:http://www.rabbitmq.com/man/rabbitmq-...

摩云飞
2012/11/12
3.2K
0
【原创】rabbitmq-service用户手册(翻译)

为了方便工作中使用,周末抽空对 rabbitmq-service 用户手册进行了翻译,鉴于自己水平有限,翻译中难免有纰漏产生,如果疑问,欢迎指出探讨。 官方原文:http://www.rabbitmq.com/man/rabbi...

摩云飞
2012/11/12
905
0
【原创】RabbitMQ 之 HTTP server 插件(翻译)

HTTP server plugin HTTP 服务器插件 The rabbitmq-mochiweb plugin provides hosting for other plugins that have HTTP interfaces. It allows these interfaces to co-exist on one or mo......

摩云飞
2015/04/27
239
0

没有更多内容

加载失败,请刷新页面

加载更多

前端技术之:Prisma Demo服务部署过程记录

安装前提条件: 1、已经安装了docker运行环境 2、以下命令执行记录发生在MackBook环境 3、已经安装了PostgreSQL(我使用的是11版本) 4、Node开发运行环境可以正常工作 首先需要通过Node包管...

popgis
今天
5
0
数组和链表

数组 链表 技巧一:掌握链表,想轻松写出正确的链表代码,需要理解指针获引用的含义: 对指针的理解,记住下面的这句话就可以了: 将某个变量赋值给指针,实际上就是将这个变量的地址赋值给指...

code-ortaerc
今天
4
0
栈-链式(c/c++实现)

上次说“栈是在线性表演变而来的,线性表很自由,想往哪里插数据就往哪里插数据,想删哪数据就删哪数据...。但给线性表一些限制呢,就没那么自由了,把线性表的三边封起来就变成了栈,栈只能...

白客C
今天
42
0
Mybatis Plus service

/** * @author beth * @data 2019-10-20 23:34 */@RunWith(SpringRunner.class)@SpringBootTestpublic class ServiceTest { @Autowired private IUserInfoService iUserInfoS......

一个yuanbeth
今天
5
0
php7-internal 7 zval的操作

## 7.7 zval的操作 扩展中经常会用到各种类型的zval,PHP提供了很多宏用于不同类型zval的操作,尽管我们也可以自己操作zval,但这并不是一个好习惯,因为zval有很多其它用途的标识,如果自己...

冻结not
昨天
6
0

没有更多内容

加载失败,请刷新页面

加载更多

返回顶部
顶部