mac中安装activeMQ


一贯地,使用brew来帮忙。现在brew中添加了activeMQ了。


执行:

 brew install activemq


OK.

看看是否安装成功,输入命令: activemq

INFO: Loading '/usr/local/Cellar/activemq/5.11.1/libexec/bin/env'

INFO: Using java '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'

Java Runtime: Oracle Corporation 1.8.0_31 /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre

  Heap sizes: current=1005056k  free=989327k  max=1005056k

    JVM args: -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/usr/local/Cellar/activemq/5.11.1/libexec/conf/login.config -Dactivemq.classpath=/usr/local/Cellar/activemq/5.11.1/libexec/conf: -Dactivemq.home=/usr/local/Cellar/activemq/5.11.1/libexec -Dactivemq.base=/usr/local/Cellar/activemq/5.11.1/libexec -Dactivemq.conf=/usr/local/Cellar/activemq/5.11.1/libexec/conf -Dactivemq.data=/usr/local/Cellar/activemq/5.11.1/libexec/data

Extensions classpath:

  [/usr/local/Cellar/activemq/5.11.1/libexec/lib,/usr/local/Cellar/activemq/5.11.1/libexec/lib/camel,/usr/local/Cellar/activemq/5.11.1/libexec/lib/optional,/usr/local/Cellar/activemq/5.11.1/libexec/lib/web,/usr/local/Cellar/activemq/5.11.1/libexec/lib/extra]

ACTIVEMQ_HOME: /usr/local/Cellar/activemq/5.11.1/libexec

ACTIVEMQ_BASE: /usr/local/Cellar/activemq/5.11.1/libexec

ACTIVEMQ_CONF: /usr/local/Cellar/activemq/5.11.1/libexec/conf

ACTIVEMQ_DATA: /usr/local/Cellar/activemq/5.11.1/libexec/data

Usage: /usr/local/Cellar/activemq/5.11.1/libexec/bin/activemq [--extdir <dir>] [task] [task-options] [task data]


Tasks:

    browse                   - Display selected messages in a specified destination.

    bstat                    - Performs a predefined query that displays useful statistics regarding the specified broker

    create                   - Creates a runnable broker instance in the specified path.

    decrypt                  - Decrypts given text

    dstat                    - Performs a predefined query that displays useful tabular statistics regarding the specified destination type

    encrypt                  - Encrypts given text

    export                   - Exports a stopped brokers data files to an archive file

    list                     - Lists all available brokers in the specified JMX context

    purge                    - Delete selected destination's messages that matches the message selector

    query                    - Display selected broker component's attributes and statistics.

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

    stop                     - Stops a running broker specified by the broker name.


Task Options (Options specific to each task):

    --extdir <dir>  - Add the jar files in the directory to the classpath.

    --version       - Display the version information.

    -h,-?,--help    - Display this help information. To display task specific help, use Main [task] -h,-?,--help


Task Data:

    - Information needed by each specific task.


JMX system property options:

    -Dactivemq.jmx.url=<jmx service uri> (default is: 'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')

    -Dactivemq.jmx.user=<user name>

    -Dactivemq.jmx.password=<password>



Tasks provided by the sysv init script:

    restart         - stop running instance (if there is one), start new instance

    console         - start broker in foreground, useful for debugging purposes

    status          - check if activemq process is running


Configuration of this script:

The configuration of this script is read from the following files:

/etc/default/activemq /Users/shentianping/.activemqrc /usr/local/Cellar/activemq/5.11.1/libexec/bin/env

    This script searches for the files in the listed order and reads the first available file.

    Modify /usr/local/Cellar/activemq/5.11.1/libexec/bin/env or create a copy of that file on a suitable location.


    To use additional configurations for running multiple instances on the same operating system

    rename or symlink script to a name matching to activemq-instance-<INSTANCENAME>.

    This changes the configuration location to /etc/default/activemq-instance-<INSTANCENAME> and

    $HOME/.activemqrc-instance-<INSTANCENAME>.



启动activeMQ服务,执行

activemq start


然后就可以访问管理web console。在浏览器中输入url: http://localhost:8161/




  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值