I am working on a Lab which require messaging queue server , so i setup this and thought of sharing the steps, so here it is..
AMQP is an open standard for message queuing that supports flexible messaging for enterprise systems. vCloud Director uses the RabbitMQ AMQP broker to provide the message bus used by extension services, object extensions, and notifications. we will be setting up this on Ubuntu System , so download Ubuntu and install it on a VM and then follow below steps
Update Ubuntu System
Before starting, you will need to update Ubuntu repository with the latest one.You can do so by running the following commands:
- #sudo apt-get update -y
- #sudo apt-get upgrade -y
Installing Erlang on Ubuntu
Before installing Rabbitmq, we will need to install erlang as a prerequisite of rabbitmq. You can install by running the following commands:
- #wget http://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc
- #sudo apt-key add erlang_solutions.asc
- #sudo apt-get update -y
- #sudo apt-get install erlang -y
- #sudo apt-get install erlang-nox -y
Once we are done with Erlang installation, we can continue with installation of RabbitMQ.
Installing RabbitMQ on Ubuntu
First we will need to add Rabbitmq repository to apt and to do that run the following command:
- #sudo echo “deb http://www.rabbitmq.com/debian/testing main” >> /etc/apt/sources.list
Once the repository has been added, Add the RabbitMQ public key to our trusted key list to avoid any warnings about unsigned packages:
- #wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
- #sudo apt-key add rabbitmq-signing-key-public.asc
Next step is to update the apt repository with the following command:
- #sudo apt-get update
Once the repository is updated, go ahead and install rabbitmq server by running the following command:
- #sudo apt-get install rabbitmq-server
Once installation is complete, start the rabbitmq server and enable it to start on boot by running the following command:
- #sudo systemctl start rabbitmq-server
- #sudo systemctl enable rabbitmq-server
You can check the status of rabbitmq server with the following command:
- #sudo systemctl status rabbitmq-server
To enable RabbitMQ Management Console, run the following:
- #sudo rabbitmq-plugins enable rabbitmq_management
Login to URL using IP address with port number 1567, here it is you have successfully installed RabbitMQ.
Change default admin user (For security hardening)
By default the admin user for RMQ installation is guest/guest. we can change the default admin account by using below commands
- #rabbitmqctl add_user vmware vmware (first vmware is admin username and second vmware is password , you change it based on your requirement)
- #rabbitmqctl set_user_tags vmware administrator (taging user with Admin priveledge)
- #rabbitmqctl set_permissions -p / vmware “.*” “.*” “.*”
- Now you can login with new admin user.
Go ahead and configure it in your vCD instance.
This completes the installation and configuration process.