mac中安装activeMQ
一貫地,使用brew來幫忙。現在brew中添加了activeMQ了。
執行:
?brew install activemq
OK.
看看是否安裝成功,輸入命令: activemq
INFO: Loading '/usr/local/Cellar/activemq/5.11.1/libexec/bin/env'
INFO: Using java '/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java'
Java Runtime: Oracle Corporation 1.8.0_31 /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre
? Heap sizes: current=1005056k? free=989327k? max=1005056k
? ? JVM args: -Xms1G -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.config=/usr/local/Cellar/activemq/5.11.1/libexec/conf/login.config -Dactivemq.classpath=/usr/local/Cellar/activemq/5.11.1/libexec/conf: -Dactivemq.home=/usr/local/Cellar/activemq/5.11.1/libexec -Dactivemq.base=/usr/local/Cellar/activemq/5.11.1/libexec -Dactivemq.conf=/usr/local/Cellar/activemq/5.11.1/libexec/conf -Dactivemq.data=/usr/local/Cellar/activemq/5.11.1/libexec/data
Extensions classpath:
? [/usr/local/Cellar/activemq/5.11.1/libexec/lib,/usr/local/Cellar/activemq/5.11.1/libexec/lib/camel,/usr/local/Cellar/activemq/5.11.1/libexec/lib/optional,/usr/local/Cellar/activemq/5.11.1/libexec/lib/web,/usr/local/Cellar/activemq/5.11.1/libexec/lib/extra]
ACTIVEMQ_HOME: /usr/local/Cellar/activemq/5.11.1/libexec
ACTIVEMQ_BASE: /usr/local/Cellar/activemq/5.11.1/libexec
ACTIVEMQ_CONF: /usr/local/Cellar/activemq/5.11.1/libexec/conf
ACTIVEMQ_DATA: /usr/local/Cellar/activemq/5.11.1/libexec/data
Usage: /usr/local/Cellar/activemq/5.11.1/libexec/bin/activemq [--extdir <dir>] [task] [task-options] [task data]
Tasks:
? ? browse ? ? ? ? ? ? ? ? ? - Display selected messages in a specified destination.
? ? bstat? ? ? ? ? ? ? ? ? ? - Performs a predefined query that displays useful statistics regarding the specified broker
? ? create ? ? ? ? ? ? ? ? ? - Creates a runnable broker instance in the specified path.
? ? decrypt? ? ? ? ? ? ? ? ? - Decrypts given text
? ? dstat? ? ? ? ? ? ? ? ? ? - Performs a predefined query that displays useful tabular statistics regarding the specified destination type
? ? encrypt? ? ? ? ? ? ? ? ? - Encrypts given text
? ? export ? ? ? ? ? ? ? ? ? - Exports a stopped brokers data files to an archive file
? ? list ? ? ? ? ? ? ? ? ? ? - Lists all available brokers in the specified JMX context
? ? purge? ? ? ? ? ? ? ? ? ? - Delete selected destination's messages that matches the message selector
? ? query? ? ? ? ? ? ? ? ? ? - Display selected broker component's attributes and statistics.
? ? start? ? ? ? ? ? ? ? ? ? - Creates and starts a broker using a configuration file, or a broker URI.
? ? stop ? ? ? ? ? ? ? ? ? ? - Stops a running broker specified by the broker name.
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.
JMX system property options:
? ? -Dactivemq.jmx.url=<jmx service uri> (default is: 'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')
? ? -Dactivemq.jmx.user=<user name>
? ? -Dactivemq.jmx.password=<password>
Tasks provided by the sysv init script:
? ? restart ? ? ? ? - stop running instance (if there is one), start new instance
? ? console ? ? ? ? - start broker in foreground, useful for debugging purposes
? ? status? ? ? ? ? - check if activemq process is running
Configuration of this script:
The configuration of this script is read from the following files:
/etc/default/activemq /Users/shentianping/.activemqrc /usr/local/Cellar/activemq/5.11.1/libexec/bin/env
? ? This script searches for the files in the listed order and reads the first available file.
? ? Modify /usr/local/Cellar/activemq/5.11.1/libexec/bin/env or create a copy of that file on a suitable location.
? ? To use additional 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>.
啟動activeMQ服務,執行
activemq start
然后就可以訪問管理web console。在瀏覽器中輸入url:?http://localhost:8161/
總結
以上是生活随笔為你收集整理的mac中安装activeMQ的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: CSS3 Media Query:移动
- 下一篇: tp钱包怎么用