我在 Ubuntu 10.4 上使用(尝试使用)activemq 5,Apache.org 上的文档与实际安装的内容之间存在很大的不匹配。
我通过 sudo apt-get install activemq
安装它
根据 Apache 文档,在安装的 bin 目录中应该有一个名为“activemq”的文件。但是,在我的文件夹 /usr/share/activemq/bin
中只有一个文件:run.jar,它是一个符号链接(symbolic link)。没有文件activemq。
所以,根据文档(http://activemq.apache.org/version-5-getting-started.html#Version5GettingStarted-InstallationProcedureforUnix),我什至无法启动它。
如果我尝试使用命令 activemq console
启动代理,我会收到错误 mkdir: missing operand 后跟一个以
-jar "/usr/share/activemq/bin/run.jar"启动:未找到
这很奇怪,因为那个确切的符号链接(symbolic link)在我的机器上。
如果我运行 sudo activemq console
我会得到类似的错误,然后是运行时异常,
"Failed to execute start task. Reason blah blah FileNotFoundException: class path resource [activemq.xml] cannot be opened because it does not exist. (StartCommand.java:98)"
我怎样才能克服这个问题并启动 activemq?
最佳答案
肯定有问题。您不需要数据包管理器。 我建议你使用官方下载页面: http://activemq.apache.org/activemq-5151-release.html
选择最新版本或其他版本,然后下载、解压并通过 ./bin/activemq start
启动
关于java - activemq/bin目录下没有 "activemq"文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36539217/