1、安装
brew update
brew install rabbitmq
## 进入安装目录
cd /usr/local/Cellar/rabbitmq/3.7.5
# 启动
brew services start rabbitmq
# 当前窗口启动
./sbin/rabbitmq-server
进入控制台:http://localhost:15672/
用户名和密码:guest/guest
添加账号(也可以在管理页面新增)
cd /usr/local/Cellar/rabbitmq/3.7.5/sbin目录下执行
./rabbitmqctl add_user admin admin
添加访问权限
./rabbitmqctl set_permissions -p"/" admin".*"".*"".*"
设置超级权限
./rabbitmqctl set_user_tags admin administrator