安装 rabbitmq3.9单体篇

安装 rabbitmq3.9单体篇

  1. 前置依赖安装

    yum install build-essential openssl openssl-devel unixODBC unixODBC-devel make gcc gcc-c++ kernel-devel m4 ncurses-devel tk tc xz
    
  2. 下载软件包

    # rabbitmq-sever
    wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.9.13/rabbitmq-server-3.9.13-1.el7.noarch.rpm
    # socat
    wget http://mirror.centos.org/centos/7/os/x86_64/Packages/socat-1.7.3.2-2.el7.x86_64.rpm
    # erlang 23
    wget https://github.com/rabbitmq/erlang-rpm/releases/download/v23.3.4.11/erlang-23.3.4.11-1.el7.x86_64.rpm
    
  3. 安装

    rpm -ivh erlang-23.3.4.11-1.el7.x86_64.rpm
    rpm -ivh socat-1.7.3.2-2.el7.x86_64.rpm
    rpm -ivh rabbitmq-server-3.9.13-1.el7.noarch.rpm
    
  4. 启动后台管理

    rabbitmq-plugins enable rabbitmq_management
    
  5. 启动 rabbitmq

    systemctl start rabbitmq-server.service
    
  6. 开机自启

    systemctl enable rabbitmq-server.service
    
  7. 创建远程登录账号

    # 添加 root 账号,密码 root
    rabbitmqctl add_user root root
    # 设置为管理员角色
    rabbitmqctl set_user_tags root administrator
    # 设置路径权限
    rabbitmqctl set_permissions -p "/" root ".*" ".*" ".*"
    # 查看用户列表
    rabbitmqctl list_users
    # 更改密码(可选)
    rabbitmqctl change_password root 123456
    
  8. 登录管理页面,用户名密码: root

    image-20220220120158514

posted @ 2022-02-20 12:03  那个吧..你懂的!  阅读(317)  评论(0编辑  收藏  举报