Mac 安装rabbitmq

1.安装

brew install rabbitmq

softdeMacBook-Pro:~ softsun$ brew install rabbitmq
==> Installing dependencies for rabbitmq: xz, openssl, jpeg, libpng, libt
==> Installing rabbitmq dependency: xz
==> Downloading https://homebrew.bintray.com/bottles/xz-5.2.2.el_capitan.bottle.
######################################################################## 100.0%
==> Pouring xz-5.2.2.el_capitan.bottle.tar.gz
/usr/local/Cellar/rabbitmq/3.6.1: 188 files, 5.8M, built in 3 minutes 12 seconds

注意: rabbitmq的安装目录: /usr/local/Cellar/rabbitmq/3.6.1

2.运行

进入/usr/local/Cellar/rabbitmq/3.6.1

sbin/rabbitmq-server

              RabbitMQ 3.6.1. Copyright (C) 2007-2016 Pivotal Software, Inc.
  ##  ##      Licensed under the MPL.  See http://www.rabbitmq.com/
  ##  ##
  ##########  Logs: /usr/local/var/log/rabbitmq/rabbit@localhost.log
  ######  ##        /usr/local/var/log/rabbitmq/rabbit@localhost-sasl.log
  ##########
              Starting broker... completed with 10 plugins.

3.启动插件

sudo sbin/rabbitmq-plugins enable rabbitmq_management

softdeMacBook-Pro:3.6.1 softsun$ sudo sbin/rabbitmq-plugins enable rabbitmq_management
Plugin configuration unchanged.

Applying plugin configuration to rabbit@localhost... nothing to do.
softdeMacBook-Pro:3.6.1 softsun$ 

只要执行一次即可

4.管理界面

http://localhost:15672/

账号密码初始默认都为guest



阅读更多

没有更多推荐了,返回首页