gepur-it/rabbitmq-bundle

RabbitMQ 连接包

安装次数: 16,418

依赖者: 5

建议者: 0

安全性: 0

星标: 2

关注者: 3

分支: 0

开放问题: 0

类型:symfony-bundle

5.4.1 2021-11-30 11:16 UTC

README

在 composer require 之前

  1. 创建 yaml 配置文件 "rabbit_mq.yaml"
rabbit_mq:
  default_connection: default
  connections:
    default:
      host: '%env(RABBITMQ_HOST)%'
      port: '%env(RABBITMQ_PORT)%'
      login: '%env(RABBITMQ_LOGIN)%'
      password: '%env(RABBITMQ_PASS)%'
      vhost: '%env(RABBITMQ_VHOST)%'
  1. 配置 .env 文件
RABBITMQ_HOST=127.0.0.1
RABBITMQ_PORT=5672
RABBITMQ_LOGIN=guest
RABBITMQ_PASS=guest
RABBITMQ_VHOST=/