centos7安装 rabbitMQ

永远相信官方

https://www.rabbitmq.com/install-rpm.html#cloudsmith

  1. 第一步
    Yum 将验证它安装的任何软件包的签名,因此该过程的第一步是导入签名密钥
## 主 RabbitMQ 签名密钥
rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
##现代Erlang存储库
rpm --import https://packagecloud.io/rabbitmq/erlang/gpgkey
## RabbitMQ 服务器存储库
rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
  1. 第二步
    为 RabbitMQ 和 Modern Erlang 添加 Yum 存储库
    为了使用 Yum 存储库,必须在/etc/yum.repos.d/目录下添加一个.repo文件(例如rabbitmq.repo)
# 在 /etc/yum.repos.d/rabbitmq.repo

##
## 零依赖 Erlang
##

[rabbitmq_erlang]
名称=rabbitmq_erlang
baseurl = https://packagecloud.io/rabbitmq/erlang/el/ 7 / $basearch
repo_gpgcheck = 1
gpgcheck = 1
启用= 1
# PackageCloud 的存储库密钥和 RabbitMQ 包签名密钥
gpgkey = https://packagecloud.io/rabbitmq/erlang/gpgkey
       https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
sslverify = 1
sslcacert =/etc/pki/tls/certs/ca-bundle.crt
metadata_expire = 300

[rabbitmq_erlang-source]
名称=rabbitmq_erlang-source
baseurl =https://packagecloud.io/rabbitmq/erlang/el/ 7 /SRPMS
repo_gpgcheck = 1
gpgcheck = 0
启用= 1
gpgkey = https://packagecloud.io/rabbitmq/erlang/gpgkey
sslverify = 1
sslcacert =/etc/pki/tls/certs/ca-bundle.crt
metadata_expire = 300

##
## RabbitMQ 服务器
##

[rabbitmq_server]
名称=rabbitmq_server
baseurl = https://packagecloud.io/rabbitmq/rabbitmq-server/el/ 7 / $basearch
repo_gpgcheck = 1
gpgcheck = 1
启用= 1
# PackageCloud 的存储库密钥和 RabbitMQ 包签名密钥
gpgkey = https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
       https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc
sslverify = 1
sslcacert =/etc/pki/tls/certs/ca-bundle.crt
metadata_expire = 300

[rabbitmq_server-source]
名称=rabbitmq_server-source
baseurl = https://packagecloud.io/rabbitmq/rabbitmq-server/el/ 7 /SRPMS
repo_gpgcheck = 1
gpgcheck = 0
启用= 1
gpgkey = https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey
sslverify = 1
sslcacert =/etc/pki/tls/certs/ca-bundle.crt
metadata_expire = 300
  1. 第三步
yum update -y
## install these dependencies from standard OS repositories
yum install socat logrotate -y

yum install erlang rabbitmq-server -y

搬运完成

启动相关


chkconfig rabbitmq-server on
# 启动
/sbin/service rabbitmq-server start 
# 状态
/sbin/service rabbitmq-server status
# 停止
/sbin/service rabbitmq-server stop

centos7安装 rabbitMQ

上一篇:rabbitmq集群-镜像模式


下一篇:rabbitmq的笔记(一)——安装