【问题标题】:ActiveMQ broker not startingActiveMQ 代理未启动
【发布时间】:2015-04-27 06:24:00
【问题描述】:

我正在尝试启动 ActiveMQ 代理,我目前已安装 JDK 1.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>

我做错了什么?

【问题讨论】:

  • 遇到任何异常?
  • 不,我只是安装了 ActiveMQ 5.2,它开始工作。还是谢谢

标签: activemq


【解决方案1】:

对于 ActiveMQ 5.15.8 版本
你可以开始使用commnad

./Bin>activemq start

【讨论】:

    【解决方案2】:

    目前,ActiveMQ 需要 Java 7(当前版本,Apache ActiveMQ 5.11.1)。见Pre-Installation Requirements

    然后,杰克的答案对我有用(通过第二个命令行):activemq start

    【讨论】:

      【解决方案3】:

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

      activemq console
      

      这会在前台运行代理,或者如果您想在后台运行它:

      activemq start
      

      停止

      activemq stop
      

      【讨论】:

      • 是的,在发表此评论时,their instructions for Windows 忘记提及您需要指定任何命令行参数(尽管他们提到它是为了在 Unix 上启动 ActiveMQ)。
      【解决方案4】:

      我刚刚安装了 ActiveMQ 5.2,它开始工作。还是谢谢

      【讨论】:

        猜你喜欢
        • 2015-02-16
        • 2012-01-09
        • 1970-01-01
        • 1970-01-01
        • 2012-08-15
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2011-01-28
        相关资源
        最近更新 更多