在mac上部署rabbitmq

Tags: mac 

目录

说明

可以直接在mac上安装rabbitmq,方便开发调试。

用brew安装

直接用brew安装:

brew search  rabbitmq
brew install rabbitmq

安装成功后提示:

Man pages can be found in:
  /usr/local/opt/erlang@19/lib/erlang/man
Access them with `erl -man`, or add this directory to MANPATH.

This formula is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.

If you need to have this software first in your PATH run:
  echo 'export PATH="/usr/local/opt/erlang@19/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/erlang@19/lib
...

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

设置环境变量后启动:

echo 'export PATH="/usr/local/opt/erlang@19/bin:$PATH"' >> ~/.bash_profile
echo  'export PATH="/usr/local/opt/rabbitmq/sbin/:$PATH"' >> ~/.bash_profile
soruce ~/.bash_profile
brew services start rabbitmq

访问:

$ rabbitmqctl   list_vhosts
Listing vhosts
/

参考

  1. 百度经验:怎样在mac上部署rabbitmq服务

推荐阅读

Copyright @2011-2019 All rights reserved. 转载请添加原文连接,合作请加微信lijiaocn或者发送邮件: [email protected],备注网站合作

友情链接:  系统软件  程序语言  运营经验  水库文集  网络课程  微信网文  发现知识星球