安装homebrew
https://baijiahao.baidu.com/s?id=1668544039877443967&wfr=spider&for=pc
安装rabbitmq mq
https://www.cnblogs.com/hellosiyu/p/12464558.html
3.启动rabbitmq
/usr/local/Cellar/rabbitmq/3.8.3/sbin
sudo ./rabbitmq-server
![](https://img-blog.csdnimg.cn/img_convert/302dcc26ae229487e3a9bbef6bc5f449.png)
4.停止rabbitmq
sudo rabbitmqctl stop
5.访问rabbitmq http://localhost:15672
这是默认的本地地址,一般是http://ip:15672,ip是你自己的
6.控制台发送消息
![](https://img-blog.csdnimg.cn/img_convert/3e1c31399632ad6be5ea33e114f0d902.png)