0)5.3.0-二进制代码启动笔记

2017-01-05 11:05:56来源:oschina作者:强子哥哥人点击

下载完二进制文件后,解压缩,启动命令:


root@machine0:~/binary-apache-activemq-5.3.0# ./bin/activemq
Java Runtime: Oracle Corporation 1.7.0_101 /usr/lib/jvm/java-7-openjdk-i386/jre
Heap sizes: current=4992kfree=4245kmax=506816k
JVM args: -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote -Dactivemq.classpath=/root/binary-apache-activemq-5.3.0/conf; -Dactivemq.home=/root/binary-apache-activemq-5.3.0 -Dactivemq.base=/root/binary-apache-activemq-5.3.0
ACTIVEMQ_HOME: /root/binary-apache-activemq-5.3.0
ACTIVEMQ_BASE: /root/binary-apache-activemq-5.3.0
Loading message broker from: xbean:activemq.xml
INFO | Using Persistence Adapter: org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter@ecb5db
INFO | ActiveMQ 5.3.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://machine0:61616
INFO | Connector openwire Started
INFO | ActiveMQ JMS Message Broker (localhost, ID:machine0-57389-1470915353468-0:0) started
INFO | Logging to org.slf4j.impl.JCLLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog
INFO | jetty-6.1.9
INFO | ActiveMQ WebConsole initialized.
INFO | Initializing Spring FrameworkServlet 'dispatcher'
INFO | ActiveMQ Console at http://0.0.0.0:8161/admin
INFO | Initializing Spring root WebApplicationContext
INFO | Connector vm://localhost Started
INFO | Camel Console at http://0.0.0.0:8161/camel
INFO | ActiveMQ Web Demos at http://0.0.0.0:8161/demo
INFO | RESTful file access application at http://0.0.0.0:8161/fileserver
INFO | Started SelectChannelConnector@0.0.0.0:8161

查看程序


/usr/lib/jvm/java-7-openjdk-i386/bin/java -Xmx512M -Dorg.apache.activemq.UseDedicatedTaskRunner=true -Djava.util.logging.config.file=logging.properties -Dcom.sun.management.jmxremote -Dactivemq.classpath=/root/binary-apache-activemq-5.3.0/conf; -Dactivemq.home=/root/binary-apache-activemq-5.3.0 -Dactivemq.base=/root/binary-apache-activemq-5.3.0 -jar /root/binary-apache-activemq-5.3.0/bin/run.jar start

那么主类从这个jar包查看:


Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: dejanb
Build-Jdk: 1.5.0_17
Specification-Title: ActiveMQ :: Run Jar
Specification-Version: 5.3.0
Specification-Vendor: The Apache Software Foundation
Implementation-Title: ActiveMQ :: Run Jar
Implementation-Version: 5.3.0
Implementation-Vendor-Id: org.apache.activemq
Implementation-Vendor: The Apache Software Foundation
Main-Class: org.apache.activemq.console.Main

所以主类就是:org.apache.activemq.console.Main


最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台