[聚合文章] activemq基础之:(三)active-admin命令行管理工具

消息系统 2017-11-12 18 阅读

activemq-admin命令:

1、start

Creates and starts a broker using a configuration file, or a broker URI.

使用配置文件或代理URI创建和启动代理。

例子:


activemq-admin start(启动localhost)

activemq-admin start xbean:file:E:/apache-activemq-5.7.0/aaa/conf/activemq.xml

2、create

Creates a runnable broker instance in the specified path

创建一个可以运行的代理实例,在指定的路径。

做用是创建后,可以起多个实例,每个实例有自己的Queues和Topics,但是实例共用kahadb数据库。

例子:


activemq-admin create E:\apache-activemq-5.7.0\aaa

3、stop

Stops a running broker specified by the broker name.

停止一个指定代理名称的代理。

broker name配置在activemq.xml中。

例子:


activemq-admin stop aaa

4、list

Lists all available brokers in the specified JMX context.

列出在JMX中所有可用的代理。

例子:


activemq-admin list

...

Connecting to pid: 7868

BrokerName = aaa

5、query

Display selected broker component's attributes and statistics.

显示选定的代理组件的属性和统计信息。

6、browse

Display selected messages in a specified destination.

7、journal-audit

Allows you to view records stored in the persistent journal.

8、purge

Delete selected destination's messages that matches the message selector

9、encrypt

Encrypts given text

10、decrypt

Decrypts given text

注:本文内容来自互联网,旨在为开发者提供分享、交流的平台。如有涉及文章版权等事宜,请你联系站长进行处理。