为了方便工作中使用,周末抽空对 rabbitmq-plugins 用户手册进行了翻译,鉴于自己水平有限,翻译中难免有纰漏产生,如果疑问,欢迎指出探讨。
官方原文:http://www.rabbitmq.com/man/rabbitmq-plugins.1.man.html
======== 我是分割线 ==========
通过 http://www.rabbitmq.com/manpages.html 可知 RabbitMQ 有5个 General Command :
1. rabbitmqctl2. rabbitmq-plugins
3. rabbitmq-server
4. rabbitmq-service
5. rabbitmq-echopid
若要对 server 进行高级配置,则需要参考 administrator's guide(http://www.rabbitmq.com/admin-guide.html)
rabbitmq-plugins — 管理 RabbitMQ broker 的 plugin 的命令行工具
概要rabbitmq-plugins {command} [command options...]
描述
rabbitmq-plugins 是用于管理 RabbitMQ broker 的 plugin 的命令行工具,其允许您 enable,disable 以及 browse 所有 plugin。只有具有 RabbitMQ 配置目录写权限的用户才能使用该命令。
有一些 plugin 是需要依赖其他的 plugin 才能正常工作的。rabbitmq-plugins 命令会遍历依赖关系并 enable 所有必需的 plugin。通过 rabbitmq-plugins 列出来的 plugin 被标识为 explicitly enabled ,依赖关系中涉及的 plugin 被标识为 implicitly enabled 。Implicitly enabled 的 plugin 当不在被其他的 plugin 需要时会被自动 disabled 。
命令
list [-v] [-m] [-E] [-e] [pattern]
-v
显式全部 plugin 细节 (verbose).
-m
只显示 plugin 名字 (minimal).
-E
只显示 explicitly enabled 的 plugins.
-e
只显示 explicitly 或者 implicitly enabled 的 plugins.
pattern
用于过滤 plugin 名字的模式.
列举当前已存在 plugin 、其版本信息、依赖关系和描述信息。每一个 plugin 前面都会有一个表明状态的指示符:
[ ] 表示 plugin 未 enabled
[E] 表示 plugin 被 explicitly enabled
[e] 表示 plugin 被 implicitly enabled
如果可选参数 pattern 存在,那么只有名字与模式 pattern 匹配的 plugin 才会显示出来。
举例:
rabbitmq-plugins list列出所有 plugin,每行一条
E:\Program Files\RabbitMQ Server\rabbitmq_server-2.8.7\sbin>rabbitmq-plugins.bat list
[ ] amqp_client 2.8.7
[ ] eldap 2.8.7-gite309de4
[ ] erlando 2.8.7
[ ] mochiweb 2.3.1-rmq2.8.7-gitd541e9a
[ ] rabbitmq_auth_backend_ldap 2.8.7
[ ] rabbitmq_auth_mechanism_ssl 2.8.7
[ ] rabbitmq_consistent_hash_exchange 2.8.7
[ ] rabbitmq_federation 2.8.7
[ ] rabbitmq_federation_management 2.8.7
[ ] rabbitmq_jsonrpc 2.8.7
[ ] rabbitmq_jsonrpc_channel 2.8.7
[ ] rabbitmq_jsonrpc_channel_examples 2.8.7
[ ] rabbitmq_management 2.8.7
[ ] rabbitmq_management_agent 2.8.7
[ ] rabbitmq_management_visualiser 2.8.7
[ ] rabbitmq_mochiweb 2.8.7
[ ] rabbitmq_shovel 2.8.7
[ ] rabbitmq_shovel_management 2.8.7
[ ] rabbitmq_stomp 2.8.7
[ ] rabbitmq_tracing 2.8.7
[ ] rfc4627_jsonrpc 2.8.7-gita5e7ad7
[ ] webmachine 1.9.1-rmq2.8.7-git52e62bc
rabbitmq-plugins list -v
列出所有 plugin 的详细信息
E:\Program Files\RabbitMQ Server\rabbitmq_server-2.8.7\sbin>rabbitmq-plugins.bat list
[ ] amqp_client
Version: 2.8.7
Description: RabbitMQ AMQP Client
[ ] eldap
Version: 2.8.7-gite309de4
Description: LDAP Client Library
[ ] erlando
Version: 2.8.7
Description: Syntax extensions for Erlang
[ ] mochiweb
Version: 2.3.1-rmq2.8.7-gitd541e9a
Description: MochiMedia Web Server
[ ] rabbitmq_auth_backend_ldap
Version: 2.8.7
Description: RabbitMQ LDAP Authentication Backend
[ ] rabbitmq_auth_mechanism_ssl
Version: 2.8.7
Description: RabbitMQ SSL authentication (SASL EXTERNAL)
[ ] rabbitmq_consistent_hash_exchange
Version: 2.8.7
Description: Consistent Hash Exchange Type
[ ] rabbitmq_federation
Version: 2.8.7
Dependencies: [amqp_client]
Description: RabbitMQ Federation
[ ] rabbitmq_federation_management
Version: 2.8.7
Dependencies: [rabbitmq_management]
Description: RabbitMQ Federation Management
[ ] rabbitmq_jsonrpc
Version: 2.8.7
Dependencies: [rabbitmq_mochiweb,rfc4627_jsonrpc]
Description: Rabbit JSON-RPC
[ ] rabbitmq_jsonrpc_channel
Version: 2.8.7
Dependencies: [rabbitmq_jsonrpc,amqp_client]
Description: RabbitMQ JSON-RPC Channels
[ ] rabbitmq_jsonrpc_channel_examples
Version: 2.8.7
Dependencies: [rabbitmq_jsonrpc_channel]
Description: rabbit_jsonrpc_channel_examples
[ ] rabbitmq_management
Version: 2.8.7
Dependencies: [rabbitmq_mochiweb,amqp_client,
rabbitmq_management_agent]
Description: RabbitMQ Management Console
[ ] rabbitmq_management_agent
Version: 2.8.7
Description: RabbitMQ Management Agent
[ ] rabbitmq_management_visualiser
Version: 2.8.7
Dependencies: [rabbitmq_management]
Description: RabbitMQ Visualiser
[ ] rabbitmq_mochiweb
Version: 2.8.7
Dependencies: [mochiweb,webmachine]
Description: RabbitMQ Mochiweb Embedding
[ ] rabbitmq_shovel
Version: 2.8.7
Dependencies: [amqp_client,erlando]
Description: Data Shovel for RabbitMQ
[ ] rabbitmq_shovel_management
Version: 2.8.7
Dependencies: [rabbitmq_management]
Description: Shovel Status
[ ] rabbitmq_stomp
Version: 2.8.7
Dependencies: [amqp_client]
Description: Embedded Rabbit Stomp Adapter
[ ] rabbitmq_tracing
Version: 2.8.7
Dependencies: [rabbitmq_management]
Description: RabbitMQ message logging / tracing
[ ] rfc4627_jsonrpc
Version: 2.8.7-gita5e7ad7
Description: JSON RPC Service
[ ] webmachine
Version: 1.9.1-rmq2.8.7-git52e62bc
Dependencies: [mochiweb]
Description: webmachine
rabbitmq-plugins list -v management
列出所有名字中包含“management”字符串的 plugin 的详细信息
E:\Program Files\RabbitMQ Server\rabbitmq_server-2.8.7\sbin>rabbitmq-plugins.bat list -v management
[ ] rabbitmq_federation_management
Version: 2.8.7
Dependencies: [rabbitmq_management]
Description: RabbitMQ Federation Management
[ ] rabbitmq_management
Version: 2.8.7
Dependencies: [rabbitmq_mochiweb,amqp_client,
rabbitmq_management_agent]
Description: RabbitMQ Management Console
[ ] rabbitmq_management_agent
Version: 2.8.7
Description: RabbitMQ Management Agent
[ ] rabbitmq_management_visualiser
Version: 2.8.7
Dependencies: [rabbitmq_management]
Description: RabbitMQ Visualiser
[ ] rabbitmq_shovel_management
Version: 2.8.7
Dependencies: [rabbitmq_management]
Description: Shovel Status
rabbitmq-plugins list -e rabbit
列出所有名字中包含“rabbit”字符串的 implicitly 或者 explicitly enabled 的 RabbitMQ plugin 的信息
E:\Program Files\RabbitMQ Server\rabbitmq_server-2.8.7\sbin>rabbitmq-plugins.bat list -e rabbit
(无输出)
enable {plugin ...}
plugin
指定需要 enable 的一个或多个 plugin
Enable 指定的 plugins 和其必须的依赖
举例:
rabbitmq-plugins enable rabbitmq_shovel rabbitmq_management
该命令 enable 了 shovel 和 management plugin 以及其必须的全部依赖
disable {plugin ...}
plugin
指定需要 disable 的一个或多个 plugin
该命令 disable 指定的 plugin 和所有依赖该 plugin 的其他 plugin
举例:
rabbitmq-plugins disable amqp_client
该命令 disable 了 amqp_client 以及所有依赖它的其他 plugin
来源:oschina
链接:https://my.oschina.net/u/617889/blog/88755