无法在Linux上启动Active MQ

时间:2012-10-13 21:20:38

标签: activemq

我正在尝试在RaspberryPI Debian Squeeze框上运行ActiveMQ服务器并且所有服务器似乎都安装正确但是当我尝试启动服务时,我得到以下内容...

root @ raspberrypi:/var/www/activemq/apache-activemq-5.7.0# bin / activemq

信息:正在加载'/ etc / default / activemq'

信息:使用java'/usr/jre1.7.0_07/bin/java'

/usr/jre1.7.0_07/bin/java:1:/usr/jre1.7.0_07/bin/java:ELF0

                                                       4°: not found

/usr/jre1.7.0_07/bin/java:2:/usr/jre1.7.0_07/bin/java:语法错误:“(”意外

sysv init脚本提供的任务:

restart         - stop running instance (if there is one), start new instance

console         - start broker in foreground, useful for debugging purposes

status          - check if activemq process is running

setup           - create the specified configuration file for this init script

                  (see next usage section)

配置此脚本:

The configuration of this script can be placed on /etc/default/activemq or /root/.activemqrc.

To use additional configurations for running multiple instances on the same operating system

rename or symlink script to a name matching to activemq-instance-<INSTANCENAME>.

This changes the configuration location to /etc/default/activemq-instance-<INSTANCENAME> and

$HOME/.activemqrc-instance-<INSTANCENAME>. Configuration files in /etc have higher precedence.

根@树莓派:/var/www/activemq/apache-activemq-5.7.0#

看起来某处出现了错误,但我是一个相当新手并且不知道在哪里看。

2 个答案:

答案 0 :(得分:20)

只是添加答案,因为根据文档becoz,命令是错误的

启动activemqm,使用

导航至[安装目录/ bin]并运行./activemq start或简单bin/activemq start

如果您希望在窗口中看到它,请使用bin/activemq console

要停止,你必须杀死进程

答案 1 :(得分:2)

默认的ActiveMQ“入门”链接在此发送:http://activemq.apache.org/getting-started.html,这是“ActiveMQ 4.x入门指南”。

如果向下滚动主文档页面,您将找到包含正确命令的链接: http://activemq.apache.org/version-5-getting-started.html