ActiveMQ代理未启动

ActiveMQ代理未启动,activemq,Activemq,我正在尝试启动ActiveMQ代理,目前已安装JDK1.8.0_31和ActiveMQ 5.11.1。从activemq安装中的bin文件夹运行activemq时,会收到以下消息: Java Runtime: Oracle Corporation 1.8.0_31 C:\Program Files\Java\jdk1.8.0_31\jre Heap sizes: current=1005056k free=984084k max=1005056k JVM args: -Dcom.sun.ma

我正在尝试启动ActiveMQ代理,目前已安装JDK1.8.0_31和ActiveMQ 5.11.1。从activemq安装中的bin文件夹运行activemq时,会收到以下消息:

Java Runtime: Oracle Corporation 1.8.0_31 C:\Program Files\Java\jdk1.8.0_31\jre
Heap sizes: current=1005056k  free=984084k  max=1005056k
JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G - Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=C:\activemq\bin\..\conf\login.config -Dactivemq.classpath=C:\activemq\bin\..\conf;C:\activemq\bin\../conf;C:\activemq\bin\../conf; -Dactivemq.home=C:\activemq\bin\.. -Dactivemq.base=C:\activemq\bin\.. -Dactivemq.conf=C:\activemq\bin\..\conf -Dactivemq.data=C:\activemq\bin\..\data -Djava.io.tmpdir=C:\activemq\bin\..\data\tmp
Extensions classpath:
[C:\activemq\bin\..\lib,C:\activemq\bin\..\lib\camel,C:\activemq\bin\..\lib\optional,C:\activemq\bin\..\lib\web,C:\activemq\bin\..\lib\extra]
ACTIVEMQ_HOME: C:\activemq\bin\..
ACTIVEMQ_BASE: C:\activemq\bin\..
ACTIVEMQ_CONF: C:\activemq\bin\..\conf
ACTIVEMQ_DATA: C:\activemq\bin\..\data
Usage: Main [--extdir <dir>] [task] [task-options] [task data]

Tasks:
    browse                   - Display selected messages in a specified destination.
    bstat                    - Performs a predefined query that displays usefulstatistics 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 usefultabular 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 JMXcontext
    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>
Java运行时:Oracle Corporation 1.8.0\u 31 C:\Program Files\Java\jdk1.8.0\u 31\jre
堆大小:当前=1005056k空闲=984084k最大=1005056k
JVM参数:-Dcom.sun.management.jmxremote-Xms1G-Xmx1G-Djava.util.logging.config.file=logging.properties-Djava.security.auth.login.config=C:\activemq\bin\..\conf\login.config-Dactivemq.classpath=C:\activemq\bin\..\conf;C:\activemq\bin\../conf;C:\activemq\bin\../conf-Dactivemq.home=C:\activemq\bin\-Dactivemq.base=C:\activemq\bin\-Dactivemq.conf=C:\activemq\bin\..\conf-Dactivemq.data=C:\activemq\bin\..\data-Djava.io.tmpdir=C:\activemq\bin\..\data\tmp
扩展类路径:
[C:\activemq\bin\..\lib,C:\activemq\bin\..\lib\camel,C:\activemq\bin\..\lib\optional,C:\activemq\bin\..\lib\web,C:\activemq\bin\..\lib\extra]
ACTIVEMQ\u主页:C:\ACTIVEMQ\bin\。。
ACTIVEMQ_库:C:\ACTIVEMQ\bin\。。
ACTIVEMQ_CONF:C:\ACTIVEMQ\bin\..\CONF
ACTIVEMQ_数据:C:\ACTIVEMQ\bin\..\DATA
用法:Main[--extdir][task][task options][task data]
任务:
浏览-在指定的目标中显示选定的邮件。
bstat-执行预定义查询,显示有关指定代理的有用统计信息
创建-在指定路径中创建可运行的代理实例。
解密-解密给定文本
dstat-执行预定义查询,该查询显示有关指定目标类型的可用表格统计信息
加密-加密给定的文本
导出-将停止的代理数据文件导出到存档文件
列表-列出指定JMXcontext中的所有可用代理
清除-删除与消息选择器匹配的选定目标消息
查询-显示所选代理组件的属性和统计信息。
开始-使用配置文件或代理URI创建并启动代理。
停止-停止由代理名称指定的正在运行的代理。
任务选项(特定于每个任务的选项):
--extdir-将目录中的jar文件添加到类路径。
--版本-显示版本信息。
-h、 -?,--帮助-显示此帮助信息。要显示特定于任务的帮助,请使用Main[task]-h,-?,--help
任务数据:
-每个特定任务所需的信息。
JMX系统属性选项:
-Dactivemq.jmx.url=(默认值为:'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')
-Dactivemq.jmx.user=
-Dactivemq.jmx.password=

我做错了什么

我刚刚安装了ActiveMQ 5.2,它开始工作了。无论如何,非常感谢

您需要传递第二个命令行参数来启动代理

activemq console
这将在前台运行代理,或者如果您想在后台运行代理:

activemq start
制止

activemq stop

目前,ActiveMQ需要Java 7(当前版本,Apache ActiveMQ 5.11.1)。看


然后,Jake的答案对我有效(传递第二个命令行):activemq启动适用于activemq 5.15.8版本
您可以开始使用commnad

./Bin>activemq start

有任何异常吗?没有,我只是安装了ActiveMQ 5.2,它开始工作了。无论如何感谢您,在发表这篇评论时,我们发现您忘记了需要指定任何命令行参数(尽管他们提到在Unix上启动ActiveMQ时需要指定这些参数)。