日期:2014-05-19  浏览次数:20745 次

activemq5.4.2在虚拟机LINUX环境下启动不正常
现在有个任务需要在Linux环境下部署上activemq,我从官网上下载了apache-activemq-5.4.2-bin.tar.gz压缩包,在Linux下解压缩,之后在activemq.xml文件中把
<transportConnectors>
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61616"/>
        </transportConnectors>

里的地址修改成我本机地址。
再然后在终端里输入 bin/activemq start
输出如下信息:

[root@wanguanhui apache-activemq-5.4.2]# bin/activemq start
INFO: Using default configuration
(you can configure options in one of these file: /etc/default/activemq /root/.activemqrc)

INFO: Invoke the following command to create a configuration file
bin/activemq setup [ /etc/default/activemq | /root/.activemqrc ]

INFO: Using java '/usr/java/jdk1.5.0_10/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/home/apache-activemq-5.4.2/data/activemq.pid' (pid '7785')

但是activemq并没有成功启动,进入http://localhost:8161/admin  失败,无法打开网页,
而且在启动信息中显示的那个进程(pid '7785') 也不存在,用kill命令杀掉的时候,提示该线程不存在

Linux是在虚拟机上装的,是redhat5版本的
虚拟机是6.0的
虚拟机的连接方式 我用的是bridged:connected directly to the physical network

有知道这是怎么回事的吗,
各位大侠们帮帮忙,小弟 Linux+activemq 新手!!



------最佳解决方案--------------------
 /root/.activemqrc ]

INFO: Using java '/usr/java/jdk1.5.0_10/bin/java'
Java Runtime: Sun Microsystems Inc. 1.5.0_10 /usr/java/jdk1.5.0_10/jre
  Heap sizes: current=1984k  free=1630k  max=65088k
    JVM args: -Dactivemq.classpath=/home/apache-activemq-5.4.2/conf; -Dactivemq.home=/home/apache-activemq-5.4.2 -Dactivemq.base=/home/apache-activemq-5.4.2
ACTIVEMQ_HOME: /home/apache-activemq-5.4.2
ACTIVEMQ_BASE: /home/apache-activemq-5.4.2
Usage: Main [--extdir <dir>] [task] [task-options] [task data]

Tasks (default task is start):
    start           - Creates and starts a broker using a configuration file, or a broker URI.
    create          - Creates a runnable broker instance in the specified path
    stop            - Stops a running broker specified by the broker name.
    list            - Lists all available brokers in the specified JMX context.
    query           - Display selected broker component's attributes and statistics.
    browse          - Display selected messages in a specified destination.
    journal-audit