Mac安装RabbitMQ

  • 安装Homebrew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    如果不行使用国内镜像下载
    /bin/bash -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ineo6/homebrew-install/install.sh)"
  • 更新brew
    brew update
  • 安装gcc
    brew install gcc
  • 安装Socat
    brew install socat
  • 安装Erlang
    brew install erlang
    安装后版本信息==> Pouring erlang-24.0.big_sur.bottle.tar.gz
    验证erl
  • 安装RabbitMQ
    brew install rabbitmq
    安装后版本信息==> Pouring rabbitmq-3.8.16.all.bottle.tar.gz
    安装路径/usr/local/Cellar/rabbitmq/3.8.16
  • Erlang和RabbitMQ版本对照
    Erlang和RabbitMQ版本对照.png

    版本对照地址:https://www.rabbitmq.com/which-erlang.html
  • 启动RabbitMQ
    开启管理页面rabbitmq-plugins enable rabbitmq_management
    当前窗口启动
    cd /usr/local/Cellar/rabbitmq/3.8.16
    sbin/rabbitmq-server
    后台启动brew services start rabbitmq
  • 访问http://localhost:15672/
    默认用户名和密码guest,guest
  • 关闭RabbitMQ
    当前窗口关闭ctrl + c
    后台关闭brew services stop rabbitmq

参考
https://blog.csdn.net/wp616455481/article/details/116754648
https://blog.csdn.net/a984171281/article/details/105418106
https://www.cnblogs.com/yihuihui/p/9095130.html
https://blog.csdn.net/luolianxi/article/details/105371046

你可能感兴趣的:(Mac安装RabbitMQ)