MAC OSX 快速安装 rabbitMQ
一,【前言】
安装软件, 常用的用两种方式, 一种是去官网下载,然后一步一步的安装.
Mac 有一个好处就是可以用命令 brew 来安装,本文是教大家如何用brew 来安装 rabbitMQ.
安装详情参看: http://www.rabbitmq.com/install-standalone-mac.html
二,【详情】
1,直接打开 Mac 终端命令, 输入:
Brew install rabbitMQ
出现下面的代码表示rabbitMQ 安装成功:
localhost:~ daniel$ brew install rabbitmq
Updating Homebrew...
==> Installing dependencies for rabbitmq: jpeg, libpng, libtiff,wxmac, erlang
==> Installing rabbitmq dependency: jpeg
==> Downloadinghttps://homebrew.bintray.com/bottles/jpeg-8d.sierra.bottle.2.tar
########################################################################100.0%
==> Pouring jpeg-8d.sierra.bottle.2.tar.gz
** /usr/local/Cellar/jpeg/8d:19 files, 708.3K
==> Installing rabbitmq dependency: libpng
==> Downloadinghttps://homebrew.bintray.com/bottles/libpng-1.6.28.sierra.bottle
########################################################################100.0%
==> Pouring libpng-1.6.28.sierra.bottle.tar.gz
**/usr/local/Cellar/libpng/1.6.28: 26 files, 1.2M
==> Installing rabbitmq dependency: libtiff
==> Downloadinghttps://homebrew.bintray.com/bottles/libtiff-4.0.7_1.sierra.bott
########################################################################100.0%
==> Pouring libtiff-4.0.7_1.sierra.bottle.tar.gz
** /usr/local/Cellar/libtiff/4.0.7_1: 248 files, 3.4M
==> Installing rabbitmq dependency: wxmac
==> Downloadinghttps://homebrew.bintray.com/bottles/wxmac-3.0.2_4.sierra.bottle
########################################################################100.0%
==> Pouring wxmac-3.0.2_4.sierra.bottle.tar.gz
** /usr/local/Cellar/wxmac/3.0.2_4: 810 files, 24.6M
==> Installing rabbitmq dependency: erlang
==> Downloading https://homebrew.bintray.com/bottles/erlang-19.2.sierra.bottle.t
########################################################################100.0%
==> Pouring erlang-19.2.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/19.2: 7,310 files, 280.9M
==> Installing rabbitmq
==> Using the sandbox
==> Downloadinghttps://www.rabbitmq.com/releases/rabbitmq-server/v3.6.6/rabbitm
########################################################################100.0%
==> /usr/bin/unzip -qq -j/usr/local/Cellar/rabbitmq/3.6.6/plugins/rabbitmq_mana
==> 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.6.6: 188 files, 5.8M, built in 9 minutes 12seconds
2,安装后 rabbitMQ 地址:
![](https://i-blog.csdnimg.cn/blog_migrate/92699f4b05dfe36aa2740a67120928c7.png)
/usr/local/Cellar/rabbitmq/3.7.3: 232 files, 12.6MB, built in 13seconds
3,启动 rabbitMQ 的步骤:
进入到 /usr/local/Cellar/rabbitmq/3.7.3,执行命令:
sbin/rabbitmq-server
进入界面:
4,rabbitMQ 插件启动:
待RabbitMQ 的启动完毕之后,另起终端进入cd /usr/local/Cellar/rabbitmq/3.7.3/sbin 。启动插件:
命令:
sudo./rabbitmq-plugins enable rabbitmq_management(执行一次以后不用再次执行)
启动成功界面如下:
注意: password: 自己开机界面的密码登录.
5.登陆管理界面
浏览器输入:
http://localhost:15672/
默认账号和密码都是: guest
三,【小结】
rabbitMQ启动过程小结:
1,先启动rabbitMQ,
进入到rabbitMQ 版本目录: /usr/local/Cellar/rabbitmq/3.7.3,执行
命令: sbin/rabbitmq-server
2,启动插件
待RabbitMQ 的启动完毕之后,另起终端进入cd //usr/local/Cellar/rabbitmq/3.7.3/sbin。启动插件:
命令: sudo ./rabbitmq-plugins enable rabbitmq_management(执行一次以后不用再次执行)
3,提醒: 初始登录账号和密码都是 guest,恭喜您, 又进步了一点点!