Install RabbitMQ for vCloud Director 9

September 19, 2018 Jordansphere Linux

Here are the step-by-step instructions to install RabbitMQ. This install will be used for a vCloud Director 9.1 installation.

Desired versions:

Rabbit MQ :  3.7.7
Erlang:          20.1.7.1 (>19.3 is required for Rabbit MQ 3.7.7)

 

1.   Install EPEL

yum -y install epel-release

 

2. Create Erlang Repo

vi /etc/yum.repos.d/rabbitmq-erlang.repo

Inset this text into the file:

[rabbitmq-erlang]
name=rabbitmq-erlang
baseurl=https://dl.bintray.com/rabbitmq/rpm/erlang/21/el/7
gpgcheck=1
gpgkey=https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc
repo_gpgcheck=0
enabled=1


 

3. Install Erlang

yum install erlang

 

4 Install Socat

yum install socat

 

5.  Download RabbitMQ RPM

wget https://dl.bintray.com/rabbitmq/all/rabbitmq-server/3.7.7/rabbitmq-server-3.7.7-1.el7.noarch.rpm

 

6. Import GPG Key

rpm --import https://www.rabbitmq.com/rabbitmq-release-signing-key.asc

 

7. Install RabbitMQ

rpm -Uvh rabbitmq-server-3.7.7-1.el7.noarch.rpm

 

8 Start RabbitMQ service

systemctl start rabbitmq-server

 

9.  Enable RabbitMQ at startup

systemctl enable rabbitmq-server

 

10. Check status of RabbitMQ

systemctl status rabbitmq-server

You should see a similar output to this:

● rabbitmq-server.service – RabbitMQ broker
   Loaded: loaded (/usr/lib/systemd/system/rabbitmq-server.service; enabled; vendor preset: disabled)
   Active: active (running) since Wed 2018-09-19 14:24:53 BST; 2min 42s ago
 Main PID: 2018 (beam.smp)
   Status: "Initialized"
   CGroup: /system.slice/rabbitmq-server.service
           ├─2018 /usr/lib64/erlang/erts-10.0.8/bin/beam.smp -W w -A 64 -MBas ageffcbf -MHas ageffcbf -MBlmbcs 512 -MHlmbcs 512 -MMmcs 30 -…
           ├─2161 /usr/lib64/erlang/erts-10.0.8/bin/epmd -daemon
           ├─2306 erl_child_setup 1024
           ├─2323 inet_gethost 4
           └─2324 inet_gethost 4

Sep 19 14:24:51 ampq01 rabbitmq-server[2018]: ##  ##
Sep 19 14:24:51 ampq01 rabbitmq-server[2018]: ##  ##      RabbitMQ 3.7.7. Copyright (C) 2007-2018 Pivotal Software, Inc.
Sep 19 14:24:51 ampq01 rabbitmq-server[2018]: ##########  Licensed under the MPL.  See http://www.rabbitmq.com/
Sep 19 14:24:51 ampq01 rabbitmq-server[2018]: ######  ##
Sep 19 14:24:51 ampq01 rabbitmq-server[2018]: ##########  Logs: /var/log/rabbitmq/[email protected]
Sep 19 14:24:51 ampq01 rabbitmq-server[2018]: /var/log/rabbitmq/[email protected]_upgrade.log
Sep 19 14:24:51 ampq01 rabbitmq-server[2018]: Starting broker…
Sep 19 14:24:53 ampq01 rabbitmq-server[2018]: systemd unit for activation check: "rabbitmq-server.service"
Sep 19 14:24:53 ampq01 systemd[1]: Started RabbitMQ broker.
Sep 19 14:24:53 ampq01 rabbitmq-server[2018]: completed with 0 plugins.

You should ensure port 5762 is open in firewalld

 

Optional

To enable the Web Interface

1) Enable plugin

rabbitmq-plugins enable rabbitmq_management

 

2) Change Permissions

chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/

 

3) Create an Admin user

rabbitmqctl add_user admin {PASSWORD}

 

4) Set Permissions

rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"

 

You should then be able to access the URL via http://{SERVER}:15672 . Ensure the firewall port is open via firewalld.

 

 

Powered by WordPress. Designed by elogi.