CentOS7 yum安装配置RabbitMQ3.8.13

下载Erlang
wget--content-disposition https://packagecloud.io/rabbitmq/erlang/packages/el/7/erlang-22.3.4.12-1.el7.x86_64.rpm/download.rpm

安装Erlang环境
yum localinstall erlang-22.3.4.12-1.el7.x86_64.rpm

RabbitMQ下载
wget--content-dispositionhttps://packagecloud.io/rabbitmq/rabbitmq-server/packages/el/7/rabbitmq-server-3.8.13-1.el7.noarch.rpm/download.rpm
rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc

安装rabbitMQ
yum localinstall rabbitmq-server-3.8.13-1.el7.noarch.rpm

启动 MQ
systemctl start rabbitmq-server

设置开机自启
systemctl enable rabbitmq-server

安装MQ的web界面
rabbitmq-plugins enable rabbitmq_management

重启MQ
systemctl restart rabbitmq-server

登陆界面
Ip:15672
默认账号密码为guest

新增用户
rabbitmqctl add_user admin admin

设置用户分配操作权限
rabbitmqctl set_user_tags admin administrator
rabbitmqctl set_permissions -p / admin  ".*" ".*" ".*"
再次登入
posted @ 2023-12-08 13:48  村尚chun叔  阅读(108)  评论(0编辑  收藏  举报