Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit b874f58

Browse files
authored
Merge pull request #5063 from comwrap/rabbitmq-remove-notice
Align RabbitMQ installation guide
2 parents 7fd6961 + 775aab5 commit b874f58

File tree

1 file changed

+29
-13
lines changed

1 file changed

+29
-13
lines changed

guides/v2.3/install-gde/prereq/install-rabbitmq.md

Lines changed: 29 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ functional_areas:
77
- Setup
88
---
99

10-
{:.bs-callout .bs-callout-warning"}
11-
You must install and configure [RabbitMQ](http://rabbitmq.com) _before_ installing Magento.
12-
1310
## RabbitMQ Overview {#overview}
1411

1512
RabbitMQ is an open source message broker that offers a reliable, highly available, scalable and portable messaging system.
@@ -68,13 +65,13 @@ The RabbitMQ server is included on CentOS, but the version is often old. RabbitM
6865
1. Download [rabbitmq-server-3.5.6-1.noarch.rpm](https://www.rabbitmq.com/releases/rabbitmq-server/v3.5.6/rabbitmq-server-3.5.6-1.noarch.rpm){:target="_blank"}.
6966
2. Run the following commands as a user with root permissions:
7067

71-
```bash
72-
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
73-
```
74-
75-
```bash
76-
yum install rabbitmq-server-3.5.6-1.noarch.rpm
77-
```
68+
```bash
69+
rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
70+
```
71+
72+
```bash
73+
yum install rabbitmq-server-3.5.6-1.noarch.rpm
74+
```
7875

7976
Refer to [Installing on RPM-based Linux](https://www.rabbitmq.com/install-rpm.html){:target="_blank"} for more information.
8077

@@ -88,9 +85,9 @@ Review the official RabbitMQ documentation to configure and manage RabbitMQ. Pay
8885
* Starting and stopping the broker
8986
* System limits
9087

91-
## Connect RabbitMQ to {{site.data.var.ce}} or {{site.data.var.ee}}
88+
## Install Magento with RabbitMQ and connect to {{site.data.var.ce}} or {{site.data.var.ee}}
9289

93-
Add the following command line parameters when you install {{site.data.var.ce}} or {{site.data.var.ee}}:
90+
If you installed Magento after you installed RabbitMQ, add the following command line parameters when you install {{site.data.var.ce}} or {{site.data.var.ee}}:
9491

9592
`--amqp-host="<hostname>" --amqp-port="5672" --amqp-user="<user_name>" --amqp-password="<password>" --amqp-virtualhost="/"`
9693

@@ -105,12 +102,31 @@ where:
105102
|`--amqp-virtualhost`|The virtual host for connecting to RabbitMQ. The default is `/`.
106103
|`--amqp-ssl`|Indicates whether to connect to RabbitMQ. The default is `false`. If you set the value to true, see Configure SSL for more information.|
107104

105+
## Connect RabbitMQ to {{site.data.var.ce}} or {{site.data.var.ee}}
106+
107+
If you already had Magento installed and you want to connect it to RabbitMQ, add a `queue` section in the `<install_directory>/app/etc/env.php` file so that it is similar to the following:
108+
109+
```php
110+
'queue' =>
111+
array (
112+
'amqp' =>
113+
array (
114+
'host' => 'rabbitmq.example.com',
115+
'port' => '11213',
116+
'user' => 'magento',
117+
'password' => 'magento',
118+
'virtualhost' => '/'
119+
),
120+
),
121+
```
122+
123+
Then, run `bin/magento setup:upgrade` to apply the changes and create the required queues in RabbitMQ.
124+
108125
## Configure SSL
109126

110127
To configure support for SSL, edit the `ssl` and `ssl_options` parameters in the `<install_directory>/app/etc/env.php` file so that they are similar to the following:
111128

112129
```php
113-
114130
'queue' =>
115131
array (
116132
'amqp' =>

0 commit comments

Comments
 (0)