1 . 安装RabbitMQ命令
brew install rabbitmq(如果没有安装brew命令,请先安装brew)
2 . 执行过程
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
==> Summary
? /usr/local/Cellar/openssl/1.0.2n: 1,792 files, 12.3MB
==> Installing rabbitmq dependency: jpeg
==> Downloading https://homebrew.bintray.com/bottles/jpeg-9c.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring jpeg-9c.high_sierra.bottle.tar.gz
? /usr/local/Cellar/jpeg/9c: 21 files, 724.5KB
==> Installing rabbitmq dependency: libpng
==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.34.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libpng-1.6.34.high_sierra.bottle.tar.gz
? /usr/local/Cellar/libpng/1.6.34: 26 files, 1.2MB
==> Installing rabbitmq dependency: libtiff
==> Downloading https://homebrew.bintray.com/bottles/libtiff-4.0.9_2.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libtiff-4.0.9_2.high_sierra.bottle.tar.gz
? /usr/local/Cellar/libtiff/4.0.9_2: 246 files, 3.5MB
==> Installing rabbitmq dependency: wxmac
==> Downloading https://homebrew.bintray.com/bottles/wxmac-3.0.3.1_1.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring wxmac-3.0.3.1_1.high_sierra.bottle.tar.gz
? /usr/local/Cellar/wxmac/3.0.3.1_1: 810 files, 23.7MB
==> Installing rabbitmq dependency: erlang
==> Downloading https://homebrew.bintray.com/bottles/erlang-20.2.4.high_sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring erlang-20.2.4.high_sierra.bottle.tar.gz
==> Caveats
Man pages can be found in:
/usr/local/opt/erlang/lib/erlang/man
Access them with `erl -man`, or add this directory to MANPATH.
==> Summary
? /usr/local/Cellar/erlang/20.2.4: 7,038 files, 277.2MB
==> Installing rabbitmq
==> Downloading https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.3/rabbitmq-server-generic-unix-3.7
######################################################################## 100.0%
==> /usr/bin/unzip -qq -j /usr/local/Cellar/rabbitmq/3.7.3/plugins/rabbitmq_management-3.7.3.ez rabbitmq_m
==> Caveats
Management Plugin enabled by default at http://localhost:15672
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
To have launchd start rabbitmq now and restart at login:
brew services start rabbitmq
Or, if you don't want/need a background service you can just run:
rabbitmq-server
==> Summary
? /usr/local/Cellar/rabbitmq/3.7.3: 232 files, 12.6MB, built in 18 seconds
注意:rabbitmq的安装目录: /usr/local/Cellar/
3 . RabbitMQ 的启动
进入到 /usr/local/Cellar/rabbitmq/3.7.3,执行
SmallearlydeMBP:3.7.3 smallearly$ sbin/rabbitmq-server
4 . 登陆管理界面
浏览器输入:http://localhost:15672/
初始化默认账号&密码:guest