Apache ActiveMQ 5.9.0 - UNIX中的启动问题

时间:2013-11-07 10:06:20

标签: activemq

我在UNIX机器上启动ActiveMQ服务器时遇到问题。

我只是通过下载和解压缩安装一个新副本。我没有改变任何配置。

已下载的文件: - apache-activemq-5.9.0.bin.tar.gz

然后我解压缩并尝试开始。

/apache-activemq-5.9.0/bin/linux-x86-64 


[aaa@addr:17.169.98.231 linux-x86-64]$:/ngs/app/xxx> ./activemq start
Starting ActiveMQ Broker...
[aaa@addr:17.34.34.34 linux-x86-64]$:/ngs/app/xxx> 
[aaa@addr:17.34.34.34 linux-x86-64]$:/ngs/app/xxx> 
[aaa@addr:17.34.34.34 linux-x86-64]$:/ngs/app/xx> ./activemq status
ActiveMQ Broker is running (5439).
[aaa@addr:17.34.34.34 linux-x86-64]$:/ngs/app/xxx> ./activemq status
ActiveMQ Broker is running (5439).
[aaa@addr:17.34.34.34 linux-x86-64]$:/ngs/app/xxx> ./activemq status
ActiveMQ Broker is not running.
[aaa@addr:17.34.34.34 linux-x86-64]$:/ngs/app/xxx> ./activemq status
ActiveMQ Broker is not running.

现在服务器没有运行。 几秒钟之后就停止了。为什么?

从控制台开始: -

[aaa@addr:17.34.34.34 linux-x86-64]$:/ngs/app/xxx> ./activemq console

Running ActiveMQ Broker...
wrapper  | WARNING: Could not write lock file /var/lock/subsys/ActiveMQ: Permission denied
wrapper  | --> Wrapper Started as Console
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 1    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 2    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 3    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 4    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | Launching a JVM...
wrapper  | JVM exited while loading the application.
jvm 5    | wrapper  | Unable to start JVM: No such file or directory (2)
wrapper  | There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
wrapper  |   There may be a configuration problem: please check the logs.
wrapper  | <-- Wrapper Stopped

我正在做的任何错误。 我搜索了许多链接和文章,但未找到解决方案。 RabbitMQ已在这台机器上运行。

请建议我。

先谢谢

1 个答案:

答案 0 :(得分:0)

它解决了。

ActiveMQ需要JDK而不是JRE,而JRE没有安装在我的机器上。

我已经安装了JDK,现在正在运行。