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 - Allows you to view records stored in the persistent journal.
purge - Delete selected destination's messages that matches the message selector
encrypt - Encrypts given text
decrypt - Decrypts given text
Task Options (Options specific to each task):
--extdir <dir> - Add the jar files in the directory to the classpath.
--version - Display the version information.
-h,-?,--help - Display this help information. To display task specific help, use Main [task] -h,-?,--help
Task Data:
- Information needed by each specific task.
Tasks provided by the sysv init script:
restart - stop running instance (is 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)
Configuration of this script:
The configuration of this script can be placed on /etc/default/activemq or /root/.activemqrc.
To use addtional 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.
输出bin/activemq 显示的信息
正常不
[其他解释]
求各位大侠帮忙!!
[其他解释]
该回复于2011-04-11 15:40:04被版主删除
[其他解释]
[root@www-d70bf7928c6 apache-activemq-5.4.2]# bin/activemq
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
[其他解释]
找到问题了,没人回答,分就给自己了 ,
[其他解释]
能分享下吗?我也是这个错误
[其他解释]
我也是这个错误,分享一下吧多谢了~
[其他解释]
分享下吧
[其他解释]
给一下解决办法吧,楼主
[其他解释]
我现在要搭建这个环境也有问题,急啊,楼主,帮忙啊!!!!!
[其他解释]
我现在要搭建这个环境也有问题,急啊,楼主,帮忙啊!!!!!