当我在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.现在服务器没有运行。过了几秒钟就是stopping.Why了?
在控制台上启动:-
[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已经在这台机器上运行。
请给我建议。
提前谢谢
发布于 2013-11-07 10:56:39
它被解决了。
ActiveMQ需要JDK而不是JRE,它没有安装在我的机器上。
我已经安装了JDK,现在它可以工作了。
https://stackoverflow.com/questions/19833026
复制相似问题