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
./activemq setup [ /etc/default/activemq | /root/.activemqrc ]
INFO: Using java '/app/jdk1.6.0_22/bin/java'
Java Runtime: Sun Microsystems Inc. 1.6.0_22 /home/app/app/jdk1.6.0_22/jre
Heap sizes: current=122496k free=121857k max=1818624k
JVM args: -Dactivemq.classpath=/home/bicptest2/apache-activemq-5.4.3/conf; -Dactivemq.home=/home/bicptest2/apache-activemq-5.4.3 -Dactivemq.base=/home/bicptest2/apache-activemq-5.4.3
ACTIVEMQ_HOME: /home/bicptest2/apache-activemq-5.4.3
ACTIVEMQ_BASE: /home/bicptest2/apache-activemq-5.4.3
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.
不知道什么原因啊?求大神!求解释!
4 个解决方案
#1
自己解决啦,启动的命令不正确,应该是:nohup ./activemq start
#2
运行nohup ./activemq start命令,得到如下结果是什么原因,请问楼主知道么
nohup: appending output to `nohup.out'
nohup: appending output to `nohup.out'
#3
1.找到conf/activemq.xml
2.把这里的端口号都检查一遍是不是端口冲突
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://0.0.0.0:5673?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
2.把这里的端口号都检查一遍是不是端口冲突
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://0.0.0.0:5673?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
#4
可以看看日志
data/activemq.log
data/activemq.log
#1
自己解决啦,启动的命令不正确,应该是:nohup ./activemq start
#2
运行nohup ./activemq start命令,得到如下结果是什么原因,请问楼主知道么
nohup: appending output to `nohup.out'
nohup: appending output to `nohup.out'
#3
1.找到conf/activemq.xml
2.把这里的端口号都检查一遍是不是端口冲突
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://0.0.0.0:5673?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
2.把这里的端口号都检查一遍是不是端口冲突
<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="amqp" uri="amqp://0.0.0.0:5673?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="stomp" uri="stomp://0.0.0.0:61613?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="mqtt" uri="mqtt://0.0.0.0:1883?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
<transportConnector name="ws" uri="ws://0.0.0.0:61614?maximumConnections=1000&wireFormat.maxFrameSize=104857600"/>
#4
可以看看日志
data/activemq.log
data/activemq.log