Activemq无法在我的Ubuntu VM上启动 [英] Activemq will not start on my Ubuntu VM
问题描述
我正在尝试在ubuntu虚拟机上运行activemq,但是一直遇到启动它的问题。我尝试下载二进制文件和源代码没有任何运气。目前,我已经下载了源代码,运行 mvn clean install -Dmaven.test.skip = true,并且mvn报告成功安装。然后,我在.m2文件夹中四处寻找apache-activemq-5.5.1-bin.tar.gz,并将其提取到我的home / USERNAME目录中,并尝试运行 bash bin / activemq start,仅收到以下错误。
I'm trying to run activemq on my ubuntu virtual machine but have constantly been running into issues getting it to start up. I've tried downloading the binary and source with no luck. Currently I have downloaded the source, run "mvn clean install -Dmaven.test.skip=true" and mvn reported successful installation. I then hunted around in my .m2 folder found apache-activemq-5.5.1-bin.tar.gz and extracted it to my home/USERNAME dir and attempted to run "bash bin/activemq start" only to receive the following error.
INFO: Loading '/etc/default/activemq'
INFO: Using java '/usr/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties
and log4j.properties
to get details
bin/activemq: line 370: /usr/bin/java -Xms256M -Xmx256M -Dorg.apache.activemq.UseDedicatedTaskRunner=true
-Djava.util.logging.config.file=logging.properties
-Dcom.sun.management.jmxremote
-Dactivemq.classpath="/home/jacob/activeMq1/apache-activemq-5.5.1/conf;"
-Dactivemq.home="/home/jacob/activeMq1/apache-activemq-5.5.1"
-Dactivemq.base="/home/jacob/activeMq1/apache-activemq-5.5.1"
-jar "/home/jacob/activeMq1/apache-activemq-5.5.1/bin/run.jar" start >/dev/null 2>&1 &
RET="$?"; APID="$!";
echo $APID > /home/jacob/activeMq1/apache-activemq-5.5.1/data/activemq.pid;
echo "INFO: pidfile created : '/home/jacob/activeMq1/apache-activemq-5.5.1/data/activemq.pid' (pid '$APID')";
exit $RET: No such file or directory
任何人都遇到过这种情况
Has any one run into this type of error before?
推荐答案
好像我再次回答了我的一个问题,但这也许将来会对某人有所帮助。
Looks like I'm answering one of my questions again, but maybe this will help someone in the future.
步骤。
- 我最终通过创建配置使activemq正常工作通过运行命令 ./bin/activemq setup newConfig(不包括引号)
- 然后我替换了当前配置文件 activemq,该文件位于etc / default /。 (在用newConfig覆盖之前,我对原始activemq文件进行了备份。)
- 运行 ./bin/activemq start,将创建一个PID文件。
- 创建文件后,重新运行 ./bin/activemq start以最终启动代理。
- I ended up getting activemq to work by creating a configuration file via running the command "./bin/activemq setup newConfig" (exclude the quotes)
- I then replaced the current config file "activemq" which was located at etc/default/. (I made a backup of the original activemq file before overwriting it with newConfig).
- Run "./bin/activemq start" which will create a PID file.
- After the file is created re-run "./bin/activemq start" to finally start up the broker.
然后,如果保留了默认端口等,则可以通过导航到 http:// localhost:8161 / admin /或执行 netstat -an | grep 61616来测试安装。
You can then test the install by navigating to "http://localhost:8161/admin/" or by doing a "netstat -an | grep 61616" if you kept the default ports etc.
这篇关于Activemq无法在我的Ubuntu VM上启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!