11

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

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.

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

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

4

2 回答 2

23

只需添加一个答案,因为根据文档,该命令是错误的

启动activemqm,使用

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

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

要停止,您必须终止该进程

于 2013-04-04T12:28:22.870 回答
2

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

如果您向下滚动主文档页面,您会发现此链接带有正确的命令: http ://activemq.apache.org/version-5-getting-started.html

于 2014-08-24T09:34:49.347 回答