Skip to content

RabbitMQ

Toan Nguyen edited this page Apr 15, 2024 · 1 revision

Valet Pro Max facilitates installing RabbitMQ with the following command.

valet-pro rabbitmq on

Disable RabbitMQ with the following command.

valet-pro rabbitmq off

After installation you can find configuration files at the following location.

/usr/local/etc/rabbitmq/rabbitmq-env.conf

OR

/opt/homebrew/etc/rabbitmq/rabbitmq-env.conf

You don't need to change any configuration, this is optional. If you don't, you can reach RabbitMQ's interface at http://localhost:15672/ with default username guest and password guest.

Manual installation

You don't require Valet Pro Max to run RabbitMQ. you can install it yourself too with the following command (at time of writing).

brew install rabbitmq

Use RabbitMQ with Magento 2

If you use Magento 2 you can configure RabbitMQ in app/etc/env.php for queues as followed.

    'queue' => [
        'consumers_wait_for_messages' => 1,
        'amqp' => [
            'host' => '127.0.0.1',
            'port' => '5672',
            'user' => 'guest',
            'password' => 'guest',
            'virtualhost' => '/',
            'ssl' => ''
        ]
    ],
Clone this wiki locally