centos7下安装rabbitmq3.8

curl -s https://packagecloud.io/install/repositories/rabbitmq/erlang/script.rpm.sh | sudo bash
curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash
yum install rabbitmq-server-3.8.14 #以3.8.14版本为例  
//2.启用管理后台

rabbitmq-plugins enable rabbitmq_management

//3.启动rabbitmq  
systemctl start rabbitmq-server
systemctl enable rabbitmq-server
//1. 创建用户
rabbitmqctl add_user admin admin123
 
//2.设置用户角色 #rabbit有固定几种角色,具体百度
rabbitmqctl set_user_tags admin administrator
//3.新增虚拟主机/
rabbitmqctl add_vhost /
//4.设置用户权限 
rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"


//重启生效

systemctl restart rabbitmq-server

 
 

 

posted @ 2023-08-25 16:40  童年的回忆  阅读(134)  评论(0编辑  收藏  举报
如果本博客解决了您的问题,可以微信支付宝打赏鼓励一下作者哦,在此表示感谢