CentOS7安装RebbitMQ

CentOS7安装RebbitMQ

[root@mq-01 data]# uname -r
3.10.0-693.el7.x86_64
[root@mq-01 data]# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)

废话不多说,安装步骤直接上。

 

1.使用Cloudsmith仓库提供的脚本

curl -1sLf 'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/setup.rpm.sh' | sudo -E bash
##Yum 将验证它安装的任何软件包的签名,因此要导入签名密钥
rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
rpm --import 'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-erlang/gpg.E495BB49CC4BBE5B.key'
rpm --import 'https://dl.cloudsmith.io/public/rabbitmq/rabbitmq-server/gpg.9F4587F226208342.key'


2. 使用PackageCloud仓库提供的脚本

curl -s https://packagecloud.io/install/repositories/rabbitmq/rabbitmq-server/script.rpm.sh | sudo bash

rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
rpm --import https://packagecloud.io/rabbitmq/erlang/gpgkey
rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey

3.安装依赖

yum makecache
yum install socat logrotate -y

4.安装 erlang rabbitmq (可能会比较久)

yum install -y  erlang rabbitmq-server

5.启动

systemctl start rabbitmq-server

启动完成后还不可以,还要安装rabbitmq_management插件

6.安装插件rabbitmq_management

rabbitmq-plugins enable rabbitmq_management

7.安装完成,浏览器访问 15672 端口(注意关闭防火墙)

 8.创建用户admin  密码123456,并授权用户

rabbitmqctl add_user admin 123456
rabbitmgctl set_user_tags admin administrator

登录成功

 

 

 


详细安装解释参照 https://www.rabbitmq.com/install-rpm.html

 

posted on 2021-10-20 22:11  华华中  阅读(76)  评论(0编辑  收藏  举报

导航