Mac 使用Homebrew安装ActiveMQ

安装命令:

1.brew install activemq 

2.执行玩安装后 ,在命令行 输入activemq 如果出现如下界面则 安装成功。


3.使用activemq –version来查看安装的版本

activemq --version


4.activemq常用的命令

Tasks:

    browse                  - Display selected messages in a specified destination.

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

    consumer                - Receives messages from the 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

    producer                - Sends messages to the broker

    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.



5.启动activeMQ服务

activemq  start

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


点击 Manager ActiveMQ boker 输入用户名:admin 密码admin

就可以到ActiveMQ 启动成功了。

你可能感兴趣的:(Mac 使用Homebrew安装ActiveMQ)