RabbitMQ implements AMQP. It helps to scale applications by decoupling dependency between two components in an application. Application components are decoupled by moving to asynchronous message-based communication.
# Running RabbitMQ Server
sudo service rabbitmq-server start/stop/status
# Managing the Broker
sudo rabbitmqctl status/stop
# Start server on system boot
sudo chkconfig rabbitmq-server on
# Logging
/var/log/rabbitmq
sudo rabbitmq-plugins enable rabbitmq_management
sudo mkdir -p /etc/rabbitmq/ssl/
cd /etc/rabbitmq/ssl/
# for development server, use below command to create self signed certificate# answer all the questions with dummy data while generating key
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/rabbitmq/ssl/ca.key -out /etc/rabbitmq/ssl/ca.crt
sudo rabbitmqctl stop
sudo service rabbitmq-server start
1
2
3
4
5
# default guest account by default works on localhost only. If you want# to access management console URL outside the server, create a different account (mentioned in next step)# guest account should be deleted
https://localhost:15672/ (guest/guest)