• centos 7 安装 RabbitMQ


    # 准备
    yum 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
    wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
    rpm -ivh epel-release-6-8.noarch.rpm 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



    启动
    rabbitmq 服务
    systemctl start rabbitmq-server
    # 设置开机启动
    systemctl enable rabbitmq-server
     
    rabbitmq默认的工作端口为25672

    # 启用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即可进入管理界面
     
  • 相关阅读:
    关于Xcode的一些方法-15-05-01
    iOS 多线程(NSThread、GCD、NSOperation)
    iOS中View的创建过程
    iOS启动原理及应用生命周期
    UITableView详解
    iOS 字典转模型
    strong和weak
    零碎知识点总结(不定时更新)
    iOS常用第三方类库 Xcode插件
    cocoapods 类库管理利器
  • 原文地址:https://www.cnblogs.com/IWings/p/12931458.html
Copyright © 2020-2023  润新知