brew install rabbitmq
默认安装目录:
/usr/local/Cellar/rabbitmq/3.7.8
配置环境变量
/usr/local/etc/rabbitmq
默认红色框内的文件是没有的,需要去git上下载,并修改配置信息
在 github 上找到配置文件(点击红色箭头图标,即可显示下载源文件地址),并下载到
/usr/local/etc/rabbitmq
,重命名为 rabbitmq.config
命令如下:
curl -o rabbitmq.config https://raw.githubusercontent.com/rabbitmq/rabbitmq-server/master/docs/rabbitmq.config.example
添加配置信息,使远程可以访问
参考连接
https://www.rabbitmq.com/install-standalone-mac.html
http://www.rabbitmq.com/networking.html
http://www.rabbitmq.com/access-control.html
http://www.belonk.com/c/rabbitmq_server_man_permission.html
https://segmentfault.com/a/1190000016351372
https://stackoverflow.com/questions/33915400/unable-to-connect-spring-amqp-rabbit-mq-org-springframework-amqp-amqpconnect