I. 安装
brew install rabbitmq
进入安装目录
cd /usr/local/Cellar/rabbitmq/3.7.5
启动
brew services start rabbitmq
当前窗口启动
rabbitmq-server
启动控制台之前需要先开启插件
./rabbitmq-plugins enable rabbitmq_management
进入控制台: http://localhost:15672/
用户名和密码:guest,guest
II. 配置与测试
1. 添加账号
首先是得启动mq
添加账号
./rabbitmqctl add_user admin admin
添加访问权限
./rabbitmqctl set_permissions -p "/" admin "." "." ".*"
设置超级权限
./rabbitmqctl set_user_tags admin administrator
网友评论