java - ActiveMQ 未启动

标签 java jms activemq spring-jms

我已在 Windows 系统上下载了 ActiveMQ zip 文件并解压。然后我尝试运行 activemq.bat 文件,但它没有启动。它显示以下共享日志文件,任何人都可以告诉我问题是什么以及启动 activeMQ 需要做什么,

D:\apache-activemq-5.11.1\bin>activemq.bat
Java Runtime: Oracle Corporation 1.7.0_51 C:\Program Files\Java\jdk1.7.0_51\jre
  Heap sizes: current=1005568k  free=995061k  max=1005568k
    JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G -Djava.util.logging.c
onfig.file=logging.properties -Djava.security.auth.login.config=D:\apache-active
mq-5.11.1\bin\..\conf\login.config -Dactivemq.classpath=D:\apache-activemq-5.11.
1\bin\..\conf;D:\apache-activemq-5.11.1\bin\../conf;D:\apache-activemq-5.11.1\bi
n\../conf; -Dactivemq.home=D:\apache-activemq-5.11.1\bin\.. -Dactivemq.base=D:\a
pache-activemq-5.11.1\bin\.. -Dactivemq.conf=D:\apache-activemq-5.11.1\bin\..\co
nf -Dactivemq.data=D:\apache-activemq-5.11.1\bin\..\data -Djava.io.tmpdir=D:\apa
che-activemq-5.11.1\bin\..\data\tmp
Extensions classpath:
  [D:\apache-activemq-5.11.1\bin\..\lib,D:\apache-activemq-5.11.1\bin\..\lib\cam
el,D:\apache-activemq-5.11.1\bin\..\lib\optional,D:\apache-activemq-5.11.1\bin\.
.\lib\web,D:\apache-activemq-5.11.1\bin\..\lib\extra]
ACTIVEMQ_HOME: D:\apache-activemq-5.11.1\bin\..
ACTIVEMQ_BASE: D:\apache-activemq-5.11.1\bin\..
ACTIVEMQ_CONF: D:\apache-activemq-5.11.1\bin\..\conf
ACTIVEMQ_DATA: D:\apache-activemq-5.11.1\bin\..\data
Usage: Main [--extdir <dir>] [task] [task-options] [task data]

Tasks:
    browse                   - Display selected messages in a specified destinat
ion.
    bstat                    - Performs a predefined query that displays useful
statistics regarding the specified broker
    create                   - Creates a runnable broker instance in the specifi
ed 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 archiv
e file
    list                     - Lists all available brokers in the specified JMX
context
    purge                    - Delete selected destination's messages that match
es the message selector
    query                    - Display selected broker component's attributes an
d statistics.
    start                    - Creates and starts a broker using a configuration
 file, or a broker URI.
    stop                     - Stops a running broker specified by the broker na
me.

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 he
lp, 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/r
mi://localhost:1099/jmxrmi')
    -Dactivemq.jmx.user=<user name>
    -Dactivemq.jmx.password=<password>

最佳答案

您必须通过命令启动ActiveMQ:

activemq-admin.bat启动

activemq.bat 用于管理,这就是您设置参数的原因

关于java - ActiveMQ 未启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32367399/

相关文章:

java - 有关事件的电子邮件通知 - Oracle Queue

activemq - activemqconnectionfactory 和 pooledconnectionfactory 有什么区别?

java - 如何将另一个模块中的类附加到jar中?

java - 如何使用 compareTo 比较迭代器中的每个对象

java - 以正确的顺序和良好的性能处理 JMS 消息

java - 为什么createMessage方法在JMS中的Session接口(interface)上?

spring-boot - 编写测试来验证 jms 监听器中收到的消息(Spring-Boot)

java - ActiveMQ检查点调用后如何避免队列浏览阻塞

java - Spring/JPA 数据在单元测试中持续存在,但在应用程序中不存在

java - 向 Java BooleanProperty 类添加自定义方法