美文网首页
安装rabbitmq

安装rabbitmq

作者: 碧波之心 | 来源:发表于2017-05-16 09:10 被阅读447次
    1. 安装EPEL
    yum install epel-release
    yum install yum-priorities
    
    1. 安装Erlang
    wget https://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
    rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
    rpm --import https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
    //修改/etc/yum.repos.d/erlang_solutions.repo
    [erlang-solutions]
    name=Centos $releasever - $basearch - Erlang Solutions
    baseurl=https://packages.erlang-solutions.com/rpm/centos/$releasever/$basearch
    gpgcheck=1
    gpgkey=https://packages.erlang-solutions.com/rpm/erlang_solutions.asc
    enabled=1
    yum install erlang
    yum install esl-erlang
    
    1. 安装Rabbitmq
    下载rpm[http://www.rabbitmq.com/install-rpm.html]
    rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
    yum install rabbitmq-server-3.6.9-1.noarch.rpm(下载的文件)
    
    1. 配置
    启动服务:systemctl start rabbitmq-server.service
    启用RabbitMQ监控插件:rabbitmq-plugins enable rabbitmq_management
    添加用户:rabbitmqctl add_user admin admin
    设置用户角色: rabbitmqctl set_user_tags admin administrator
    设置用户权限:rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
    删除用户:rabbitmqctl delete_user guest
    

    相关文章

      网友评论

          本文标题:安装rabbitmq

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