Ubuntu 12.04上的ActiveMQ报告“没有运行”,但它正在运行并正在监听它的端口......为什么会这样?


0

我使用该命令在Ubuntu上安装了ActiveMQ sudo apt-get install activemq 这看起来很好。

然后,我通过使用以下命令复制随安装提供的示例配置来激活配置:

sudo ln -s /etc/activemq/instances-available/main /etc/activemq/instances-enabled/main

然后我开始经纪人:     sudo service activemq start

这似乎工作,因为它返回一个OK,没有错误。

我可以看到它已启动并正在侦听端口61616:

administrator@ci-server:~/tmp/Codebase/Build/com.specktro.orchid.build$ netstat -an | grep 61616
tcp6       0      0 127.0.0.1:61616         :::*                    LISTEN     

另外,如果我在调试模式下启动它,我可以看到它运行良好:

administrator@ci-server:~/tmp/Codebase/Build/com.specktro.orchid.build$ sudo /etc/init.d/activemq console main
 * Starting with Console ActiveMQ instance  main                                                                                   INFO: Loading '/usr/share/activemq/activemq-options'
INFO: Using java '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'
INFO: Starting in foreground, this is just for debugging purposes (stop process by pressing CTRL+C)
Java Runtime: Oracle Corporation 1.7.0_25 /usr/lib/jvm/java-7-openjdk-amd64/jre
  Heap sizes: current=126720k  free=123924k  max=253440k
    JVM args: -Xms128M -Xmx256M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Dcom.sun.management.jmxremote -Dactivemq.classpath=/var/lib/activemq/main/conf;/etc/activemq/instances-enabled/main; -Dactivemq.home=/usr/share/activemq -Dactivemq.base=/var/lib/activemq/main
ACTIVEMQ_HOME: /usr/share/activemq
ACTIVEMQ_BASE: /var/lib/activemq/main
Loading message broker from: xbean:activemq.xml
 INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@44edb080: startup date [Sun Nov 17 16:03:30 PST 2013]; root of context hierarchy
 INFO | PListStore:/var/lib/activemq/main/data/localhost/tmp_storage started
 INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[/var/lib/activemq/main/data/kahadb]
 INFO | JMX consoles can connect to service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi
 INFO | KahaDB is version 3
 INFO | Recovering from the journal ...
 INFO | Recovery replayed 1 operations from the journal in 0.029 seconds.
 INFO | ActiveMQ 5.5.0 JMS Message Broker (localhost) is starting
 INFO | For help or more information please see: http://activemq.apache.org/
 INFO | Listening for connections at: tcp://localhost:61616
 INFO | Connector openwire Started
 INFO | ActiveMQ JMS Message Broker (localhost, ID:ci-server-47748-1384733012178-0:1) started

问题是,当我跑步时 activemq status,它显示以下消息:

administrator@ci-server:~/tmp/Codebase/Build/com.specktro.orchid.build$ activemq status
INFO: Loading '/usr/share/activemq/activemq-options'
INFO: Using java '/usr/lib/jvm/java-7-openjdk-amd64/bin/java'
ActiveMQ not running

我有一个脚本来检查此命令的输出,并且它正在失败,因为它期望输出说它正在运行...我无法更改该脚本。

任何人都知道为什么会这样?

任何有关为什么ActiveMQ报告运行似乎正在运行的想法将不胜感激!我不知道还有什么要检查......

非常感谢你!!

爱德华多

Answers:


0

我只是在Debian Wheezy上通过ActiveMQ摸索我的方式。我无法理解apt-get安装版本发生了什么......

我有它跑。我终于和wget一起去了。我创建了一个activemq用户,作为这个用户,我运行:   wget的 http://repository.apache.org/content/repositories/snapshots/org/apache/activemq/apache-activemq/5.10-SNAPSHOT/apache-activemq-5.10-20140603.133406-78-bin.tar.gz

当我解压时,cd apache-activemq-5.10-SNAPSHOT 然后我运行./bin/activemq start。

还有很多东西需要学习,但我已经走得那么远了。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.