美文网首页
在CentOS 7上安装RabbitMQ服务器

在CentOS 7上安装RabbitMQ服务器

作者: 光小月 | 来源:发表于2019-10-03 11:50 被阅读0次

    https://www.linuxprobe.com/install-rabbitmq-on-centos-7.html
    失败--版本不对


    RabbitMQ 安装笔记


    主要参考:
    https://github.com/rabbitmq/erlang-rpm

    卸载erlang-使用yum install命令安装

    1、yum list | grep erlang
    使用此命令查询出erlang在Linux系统中安装包的名字
    2、yum remove esl-erlang.x86_64

    install

    /etc/yum.repos.d/rabbitmq-erlang.repo

    # In /etc/yum.repos.d/rabbitmq_erlang.repo
    [rabbitmq_erlang]
    name=rabbitmq_erlang
    baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/$basearch
    repo_gpgcheck=1
    gpgcheck=0
    enabled=1
    gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
    sslverify=1
    sslcacert=/etc/pki/tls/certs/ca-bundle.crt
    metadata_expire=300
    
    [rabbitmq_erlang-source]
    name=rabbitmq_erlang-source
    baseurl=https://packagecloud.io/rabbitmq/erlang/el/7/SRPMS
    repo_gpgcheck=1
    gpgcheck=0
    enabled=1
    gpgkey=https://packagecloud.io/rabbitmq/erlang/gpgkey
    sslverify=1
    sslcacert=/etc/pki/tls/certs/ca-bundle.crt
    metadata_expire=300
    
    

    yum install erlang
    rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
    yum install rabbitmq-server-3.8.0.rc.3-1.el6.noarch.rpm

    open ui

    rabbitmq-plugins enable rabbitmq_management

    start

    systemctl start rabbitmq-server.service
    systemctl enable rabbitmq-server.service

    status

    systemctl status rabbitmq-server.service
    systemctl status rabbitmq-server -l

    ui

    username/password
    管理控制台的地址默认为 http://server-name:15672
    添加一个账户吧,用户名 admin密码 admin
    rabbitmqctl add_user admin admin
    赋予超级管理员

    rabbitmqctl set_user_tags admin  administrator
    rabbitmqctl set_permissions -p /  admin  ".*"".*" ".*"
    

    相关文章

      网友评论

          本文标题:在CentOS 7上安装RabbitMQ服务器

          本文链接:https://www.haomeiwen.com/subject/qmqqpctx.html