在mac上部署rabbitmq

目录

说明

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

用brew安装

直接用brew安装:

brew search  rabbitmq
brew install rabbitmq

安装成功后提示:

Man pages can be found in:
  /usr/local/opt/[email protected]/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/[email protected]/bin:$PATH"' >> ~/.bash_profile

For compilers to find this software you may need to set:
    LDFLAGS:  -L/usr/local/opt/[email protected]/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/[email protected]/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],备注网站合作

友情链接:  李佶澳的博客  小鸟笔记  软件手册  编程手册  运营手册  爱马影视  网络课程  奇技淫巧  课程文档  精选文章  发现知识星球  百度搜索 谷歌搜索