• rabbitmq安装部署


    本文主要介绍rabbitmq-server-3.6.12的安装部署

    #  检查是否已经安装旧版本的软件

    rpm -qa|grep erlang
    rpm -qa|grep rabbitmq

    # 如果之前yum安装过rabbitmq可能会有旧版本的软件,需要卸载掉再安装

    yum remove erlang-R14B erlang-erts -y

    # 配置rabbitmq所需要的yum源(epel源)

    su -c 'rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm'

    # 安装指定版本的rabbitmq

    wget http://www.rabbitmq.com/releases/erlang/erlang-19.0.4-1.el6.x86_64.rpm
    wget http://www.rabbitmq.com/releases/rabbitmq-server/v3.6.12/rabbitmq-server-3.6.12-1.el6.noarch.rpm
    yum install erlang-19.0.4-1.el6.x86_64.rpm -y
    yum install rabbitmq-server-3.6.12-1.el6.noarch.rpm -y

    # 启动rabbitmq并配置开机自启动

    service rabbitmq-server start
    ps -ef|grep rabbitmq
    chkconfig rabbitmq-server on
    chkconfig --list rabbitmq-server

    # 设置rabbitmq启用的功能

    rabbitmq-plugins enable rabbitmq_management
    service rabbitmq-server restart

    # 默认的用户密码为guest,可以创建新的rabbitmq用户并授权

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

    # 创建其他用户nice

    rabbitmqctl add_user nice 123456
    rabbitmqctl add_vhost nice
    rabbitmqctl set_user_tags nice administrator
    rabbitmqctl set_permissions -p "nice" nice ".*" ".*" ".*"

    可以访问:http://IP:15672

    ======== 完毕,呵呵呵呵 ========

  • 相关阅读:
    Web For Pentester 学习笔记
    Vulhub Docker环境部署
    XSS 渗透思路笔记
    文件上传Upload 漏洞挖掘思路
    文件上传Upload 学习笔记
    XCTF-WEB-高手进阶区-upload1-笔记
    XCTF-WEB-高手进阶区-PHP2-笔记
    XCTF-WEB-高手进阶区-NaNNaNaNNaN-Batman-笔记
    XCTF-WEB-高手进阶区-Web_python_template_injection-笔记
    用JavaScript制作简单的计算器
  • 原文地址:https://www.cnblogs.com/tssc/p/7563179.html
Copyright © 2020-2023  润新知