热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

mac安装消息中间件---ActiveMQ

一般在mac上安装软件大家都是比较喜欢用brew来安装,今天就用brew来安装ActiveMQ。1.使用brew来安装ActiveMQbrewinstallactivemq看到

一般在mac上安装软件大家都是比较喜欢用brew来安装,今天就用brew来安装ActiveMQ。

1.使用brew来安装 ActiveMQ

 brew install activemq

看到如下的结果时候,可以很庆幸的告诉你,你已经成功安装了activemq。

localhost:~ lidong$ brew install activemq
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
bit gobby molecule statik
carrot2 gsmartcontrol opencoarrays tarsnap-gui
cnats gtk-chtheme orc-tools terminator
easy-tag imagemagick@6 source-to-image todoman
geeqie klavaro speexdsp watchexec
gifcap mingw-w64-binutils sqlparse
==>
Updated Formulae
abcde gradle opus
adns grafana orientdb
afl-fuzz groonga osc
amazon-ecs-cli grsync osquery
ammonite-repl gsoap packer
ansible gtk+ packetbeat
ansible-cmdb gtk+3 pandoc
ant h2o parallel
antigen hana pazpar2
apktool haproxy pbzip2
app-engine-go-64 harfbuzz pcsc-lite
arangodb heroku pdf2htmlex
aria2 hivemind pdfcrack
armor htmlcleaner pdftoedn
arping httrack pdns
asio hunspell pev
assh hyperscan pgformatter
aubio icarus-verilog pgrouting
autotrace icoutils pius
aws-elasticbeanstalk ievms pkcs11-helper
aws-sdk-cpp imagemagick plantuml
awscli influxdb pngcrush
b2-tools innotop pod2man
beansdb intercal poppler
berkeley-db ios-webkit-debug-proxy ✔ postgrest
bfg iperf3 pre-commit
bib-tool irssi prips
bibutils iso-codes prometheus
bind jack pstoedit
bitlbee javarepl pulseaudio
bitrise jdnssec-tools purescript
blockhash jenkins pushpin
bogofilter jid pwntools
buku jigdo pyenv
cabal-install joe pyqt5
caddy jruby qbs
cadubi kapacitor qcachegrind
caf kawa qemu
carina khal qjackctl
cattle kibana qscintilla2
cdk kobalt quantlib
certbot kotlin rabbitmq
clasp kubernetes-cli rancher-cli
cloc kubernetes-helm rancher-compose
cmake languagetool rancid
coffeescript lastpass-cli ranger
collectd lean-cli ripgrep
commandbox leptonica rocksdb
conan lft rpm
consul-template libass rswift
coturn libcec rtags
cromwell libcouchbase rtv
crystal-lang libdap ruby-build
curlpp libev rust
dar libfabric sbcl
darcs libgcrypt sdb
darkice libgit2 serd
datetime-fortran libgit2-glib sfk
datomic libgosu shadowsocks-libev
dbhash libgphoto2 shmcat
dbt libgtop sip
dbxml liblas snap7
dcmtk libmikmod snort
deis libmill soci
deisctl libming sops
dependency-check libmwaw sord
diff-pdf libosmium sourcekitten
diffoscope libphonenumber speedtest_cli
dirt libpng sphinx-doc
dmd libproxy sqldiff
dnscrypt-proxy libsass sqlite
docker libslax sqlite-analyzer
docker-compose libspectre sshguard
docker-machine libsvm sstp-client
docker-machine-nfs libtasn1 ✔ stern
docker-machine-parallels libtiff stoken
docker-swarm libupnp stormpath-cli
dockward libusb ✔ svtplay-dl
doitlive libvirt swaks
dpkg libvpx swift
dub libxc swiftformat
duplicity libxml2 ✔ swiftgen
dwarfutils lighttpd swiftlint
ecl link-grammar swig
eiffelstudio linkerd syncthing
ejabberd liquigraph synfig
eject lmdb syntaxerl
elasticsearch logentries tbox
elasticsearch@2.4 logstash tcpkali
elixir logtalk telegraf
elixirscript lrdf terraform
emscripten lsyncd terragrunt
etcd ltc-tools thefuck
euca2ools lz4 thrift
extract_url macvim tile38
fabio makeself tin
fdk-aac mariadb tintin
fftw mcabber tippecanoe
filebeat mediaconch tomcat
flatbuffers memcached ✔ transcrypt
flow ✔ memcacheq tty-clock
fluent-bit mercurial ttyd
fontforge metaproxy tvnamer
fonttools metricbeat twarc
fossil micropython typescript
fping ✔ mikutter u-boot-tools
fq minizip udunits
freeswitch mktorrent unittest-cpp
freetds mkvtoolnix unrar
fwup moc unshield
fzf mongo-c-driver vapoursynth
gammu mongodb ✔ vdirsyncer
gcal mongoose vice
gdb mono vim
geckodriver mpd wavpack
geoipupdate mpv webalizer
ghc msgpack weechat
ghostscript mypy whatmp3
ginac neofetch wireguard-tools
git-cola nexus xapian
git-lfs nghttp2 xmlrpc-c
git-subrepo nim xonsh
git-test no-more-secrets xqilla
git-tracker node ✔ xrootd
giter8 node-build xxhash
gitlab-ci-multi-runner node@0.12 xz
gitup node@4 yadm
gitversion node@6 yank
gmime nodeenv yarn
gnu-cobol notmuch yash
gnu-sed nss yaws
gnupg-pkcs11-scd nvc yaz
gnupg2 nvi yle-dl
gnuradio open-cobol you-get
gnutls open-jtalk youtube-dl
go open-mesh zabbix ✔
godep open-ocd zbar
gofabric8 openconnect zeromq
google-java-format opencore-amr zimg
gosu openshift-cli zplug
==>
Renamed Formulae
eigen32 -> eigen@3.2 scala210 -> scala@2.10 scala211 -> scala@2.11
==> Deleted Formulae
cpp-netlib dmtx-utils dynamodb-local gcc@6 qtplay

==>
Using the sandbox
==>
Downloading https://www.apache.org/dyn/closer.cgi?path=/activemq/5.14.3/apac
==>
Best Mirror http://mirrors.cnnic.cn/apache/activemq/5.14.3/apache-activemq-5
######################################################################## 100.0%
==> Caveats
To have launchd start activemq now and restart at login:
brew services start activemq
Or, if you don't want/need a background service you can just run:
activemq start
==> Summary
/usr/local/Cellar/activemq/5.14.3: 555 files, 59.7M, built in 1 minute 39 seconds
localhost:~ lidong$

2.使用activemq –version来查看安装的版本

localhost:~ lidong$ activemq --version
INFO: Loading '/usr/local/Cellar/activemq/5.14.3/libexec//bin/env'
INFO: Using java '/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java'
Java Runtime: Oracle Corporation 1.8.0_92 /Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre
Heap sizes: current=62976k free=61648k max=932352k
JVM args: -Xms64M -Xmx1G -Djava.util.logging.config.file=logging.properties -Djava.security.auth.login.cOnfig=/usr/local/Cellar/activemq/5.14.3/libexec//conf/login.config -Dactivemq.classpath=/usr/local/Cellar/activemq/5.14.3/libexec//conf:/usr/local/Cellar/activemq/5.14.3/libexec//../lib/: -Dactivemq.home=/usr/local/Cellar/activemq/5.14.3/libexec/ -Dactivemq.base=/usr/local/Cellar/activemq/5.14.3/libexec/ -Dactivemq.cOnf=/usr/local/Cellar/activemq/5.14.3/libexec//conf -Dactivemq.data=/usr/local/Cellar/activemq/5.14.3/libexec//data
Extensions classpath:
[/usr/local/Cellar/activemq/5.14.3/libexec/lib,/usr/local/Cellar/activemq/5.14.3/libexec/lib/camel,/usr/local/Cellar/activemq/5.14.3/libexec/lib/optional,/usr/local/Cellar/activemq/5.14.3/libexec/lib/web,/usr/local/Cellar/activemq/5.14.3/libexec/lib/extra]
ACTIVEMQ_HOME: /usr/local/Cellar/activemq/5.14.3/libexec
ACTIVEMQ_BASE: /usr/local/Cellar/activemq/5.14.3/libexec
ACTIVEMQ_CONF: /usr/local/Cellar/activemq/5.14.3/libexec/conf
ACTIVEMQ_DATA: /usr/local/Cellar/activemq/5.14.3/libexec/data

ActiveMQ 5.14.3
For help or more information please see: http://activemq.apache.org

3.activemq常用的命令

Tasks:
browse - Display selected messages in a specified destination.
bstat - Performs a predefined query that displays useful statistics regarding the specified broker
consumer - Receives messages from the 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
producer - Sends messages to the broker
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
- 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

4.启动activeMQ服务

activemq start

看到如下信息,就表示已经安装成功

localhost:~ lidong$ activemq start
INFO: Loading '/usr/local/Cellar/activemq/5.14.3/libexec//bin/env'
INFO: Using java '/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/bin/java'
INFO: Starting - inspect logfiles specified in logging.properties and log4j.properties to get details
INFO: pidfile created : '/usr/local/Cellar/ActiveMQ/5.14.3/libexec//data/activemq.pid' (pid '2402')

然后就可以访问管理web console。在浏览器中输入url: http://localhost:8161/

这里写图片描述

点击 Manager ActiveMQ boker 输入用户名:admin 密码admin

这里写图片描述

看到这个页面,就可以到ActiveMQ 启动成功了。


推荐阅读
  • 三、查看Linux版本查看系统版本信息的命令:lsb_release-a[root@localhost~]#lsb_release-aLSBVersion::co ... [详细]
  • Linux如何安装Mongodb的详细步骤和注意事项
    本文介绍了Linux如何安装Mongodb的详细步骤和注意事项,同时介绍了Mongodb的特点和优势。Mongodb是一个开源的数据库,适用于各种规模的企业和各类应用程序。它具有灵活的数据模式和高性能的数据读写操作,能够提高企业的敏捷性和可扩展性。文章还提供了Mongodb的下载安装包地址。 ... [详细]
  • phpcomposer 那个中文镜像是不是凉了 ... [详细]
  • CSS3选择器的使用方法详解,提高Web开发效率和精准度
    本文详细介绍了CSS3新增的选择器方法,包括属性选择器的使用。通过CSS3选择器,可以提高Web开发的效率和精准度,使得查找元素更加方便和快捷。同时,本文还对属性选择器的各种用法进行了详细解释,并给出了相应的代码示例。通过学习本文,读者可以更好地掌握CSS3选择器的使用方法,提升自己的Web开发能力。 ... [详细]
  • 生成对抗式网络GAN及其衍生CGAN、DCGAN、WGAN、LSGAN、BEGAN介绍
    一、GAN原理介绍学习GAN的第一篇论文当然由是IanGoodfellow于2014年发表的GenerativeAdversarialNetworks(论文下载链接arxiv:[h ... [详细]
  • ZSI.generate.Wsdl2PythonError: unsupported local simpleType restriction ... [详细]
  • Go Cobra命令行工具入门教程
    本文介绍了Go语言实现的命令行工具Cobra的基本概念、安装方法和入门实践。Cobra被广泛应用于各种项目中,如Kubernetes、Hugo和Github CLI等。通过使用Cobra,我们可以快速创建命令行工具,适用于写测试脚本和各种服务的Admin CLI。文章还通过一个简单的demo演示了Cobra的使用方法。 ... [详细]
  • 一句话解决高并发的核心原则
    本文介绍了解决高并发的核心原则,即将用户访问请求尽量往前推,避免访问CDN、静态服务器、动态服务器、数据库和存储,从而实现高性能、高并发、高可扩展的网站架构。同时提到了Google的成功案例,以及适用于千万级别PV站和亿级PV网站的架构层次。 ... [详细]
  • 解决github访问慢的问题的方法集锦
    本文总结了国内用户在访问github网站时可能遇到的加载慢的问题,并提供了解决方法,其中包括修改hosts文件来加速访问。 ... [详细]
  • MySQL语句大全:创建、授权、查询、修改等【MySQL】的使用方法详解
    本文详细介绍了MySQL语句的使用方法,包括创建用户、授权、查询、修改等操作。通过连接MySQL数据库,可以使用命令创建用户,并指定该用户在哪个主机上可以登录。同时,还可以设置用户的登录密码。通过本文,您可以全面了解MySQL语句的使用方法。 ... [详细]
  • C语言常量与变量的深入理解及其影响
    本文深入讲解了C语言中常量与变量的概念及其深入实质,强调了对常量和变量的理解对于学习指针等后续内容的重要性。详细介绍了常量的分类和特点,以及变量的定义和分类。同时指出了常量和变量在程序中的作用及其对内存空间的影响,类似于const关键字的只读属性。此外,还提及了常量和变量在实际应用中可能出现的问题,如段错误和野指针。 ... [详细]
  • springboot启动不了_Spring Boot + MyBatis 多模块搭建教程
    作者:枫本非凡来源:www.cnblogs.comorzlinp9717399.html一、前言1、创建父工程最近公司项目准备开始重构,框 ... [详细]
  •     这里使用自己编译的hadoop-2.7.0版本部署在windows上,记得几年前,部署hadoop需要借助于cygwin,还需要开启ssh服务,最近发现,原来不需要借助cy ... [详细]
  • 概述H.323是由ITU制定的通信控制协议,用于在分组交换网中提供多媒体业务。呼叫控制是其中的重要组成部分,它可用来建立点到点的媒体会话和多点间媒体会议 ... [详细]
  • IP经常分为内网和外网的,内网IP一般是有路由器分配的,尤其是想公司可能都有各自的内网IP,公用的公网IP。查询内网IP的通用方法是通过doc指令来查询,如ipconfig或者ipconfigall ... [详细]
author-avatar
way旧光影
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有