Centos7下安装rabbitmq

centos7下安装rabbitmq

工具安装

  • erlang安装
    rabbitmq是基于erlang开发的高级消息队列工具,要运行rabbitmq,需要先保证erlang正确的安装,安装的脚本如下:
    因系统默认的erlang包不满足rabbitmq-server-3.7.17,故需要通过手动安装
# 1. download rpm package
wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_64/esl-erlang_22.0.7-1~centos~7_amd64.rpm
# 2. install erlang
yum install -y esl-erlang_22.0.7-1_centos_7_amd64.rpm
  • yum源配置及更新
/etc/yum.repos.d

touch rabbitmq.repo 
# 将以下内容拷贝到rabbitmq.repo 
[bintray-rabbitmq-server]
name=bintray-rabbitmq-rpm
baseurl=https://dl.bintray.com/rabbitmq/rpm/rabbitmq-server/v3.7.x/el/7/
gpgcheck=0
repo_gpgcheck=0
enabled=1

# 更新 repo
yum update 
  • rabbitmq安装
yum install -y rabbitmq-server
  • 验证
    启动server并检查是否启动成功
/sbin/service rabbitmq-server start
/sbin/service rabbitmq-server status

你可能感兴趣的:(消息队列)