美文网首页
Centos7安装RabbitMQ

Centos7安装RabbitMQ

作者: Rumple | 来源:发表于2019-05-22 13:04 被阅读0次

    一、安装

    # 准备
    yum -y update
    
    yum install epel-release
    
    yum install gcc gcc-c++ glibc-devel make ncurses-devel openssl-devel autoconf java-1.8.0-openjdk-devel git wget wxBase.x86_64
    
    # 安装erlang
    yum install -y erlang
    
    
    # 安装rabbitmq
    wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.7.15/rabbitmq-server-3.7.15-1.el7.noarch.rpm
    
    # 导入秘钥
    rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc
    
    # 安装
    yum install rabbitmq-server-3.7.15-1.el7.noarch.rpm
    
    

    二、操作

    systemctl start rabbitmq-server
    
    # 设置开机启动
    systemctl enable rabbitmq-server
    
    

    三、管理

    # 启用web管理界面
    rabbitmq-plugins enable rabbitmq_management
    
    # guest用户只能用于localhost访问
    # 添加新用户及授权
    
    rabbitmqctl add_user fort fort
    
    rabbitmqctl set_user_tags fort administrator
    
    rabbitmqctl set_permissions -p / fort '.*' '.*' '.*'
    
    rabbitmqctl list_permissions
    
    # 访问ip:15672即可进入管理界面
    
    

    相关文章

      网友评论

          本文标题:Centos7安装RabbitMQ

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