rabbitMQ安装

rabbitMQ安装

 

yum install wget

下载安装erlang

wget --content-disposition

https://packagecloud.io/rabbitmq/erlang/packages/el/7/erlang-21.3.8.8-1.el7.x86_64.rpm/download.rpm

安装erlang

yum install erlang-21.3.8.8-1.el7.x86_64.rpm

 

下载rabbitMQ

wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.8.0/rabbitmq-server-3.8.0-1.el7.noarch.rpm

导入key

rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc

安装rabbit

yum localinstall rabbitmq-server-3.8.0-1.el7.noarch.rpm

systemctl start rabbit-server

 

安装web管理界面

rabbitmq-plugins enable rabbitmq_management

 

提供RabbitMQ用户和对用户使用的权限进行赋权:

 

chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/

 

分别执行以下的命令:

 

rabbitmqctl add_user admin 123456 #添加用户admin 密码123456

rabbitmqctl set_user_tags admin administrator admin设置为管理员

rabbitmqctl set_permissions -p / admin ".*" ".*" ".*" 授予所有权限

 

http://192.168.72.136:15672/

 

rabbitmq官网地址  https://www.rabbitmq.com/download.html

安装之前查看官网支持的系统版本以及所需的erlang版本

提醒:rabbitmq需要java  

参考 https://ossezhu.medium.com/%E5%9C%A8-centos-7-%E4%B8%8A%E5%AE%89%E8%A3%85-rabbitmq-cfab63c0db02

 

 

rabbitmq  对应centos的版本  https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.8.x/el/

posted @ 2021-02-23 11:07  woaibaobei  阅读(24)  评论(0编辑  收藏  举报