centos安装RabbitMQ和spring cloud使用RebbitMQ发送和接收消息

centos安装rabbitmq:

  • 环境:centos7

  • 使yum包含EPEL库:

    rpm -Uvh https://download.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

  • 下载repo:

    wget -O /etc/yum.repos.d/epel-erlang.repo http://repos.fedorapeople.org/repos/peter/erlang/epel-erlang.repo

  • 安装erlang和RabbitMQ:

    yum install erlang rabbitmq-server

  • 防火墙打开端口15672和5672,防火墙配置:iptables快速配置

  • 打开rabbitMQ的management:

    cd /usr/lib/rabbitmq/
    rabbitmq-plugins enable rabbitmq_management

  • 启动:

    rabbitmq-s

你可能感兴趣的:(java,架构设计,RabbitMQ,Spring,cloud)