Skip to content

Instantly share code, notes, and snippets.

@linuxdevhub
Created January 19, 2020 19:20
Show Gist options
  • Save linuxdevhub/edaf1c996e44200bfa25183b7b96179b to your computer and use it in GitHub Desktop.
Save linuxdevhub/edaf1c996e44200bfa25183b7b96179b to your computer and use it in GitHub Desktop.
sudo apt-get update
sudo apt-get upgrade
#Add Signing Key using either of the following commands:
wget -O - "https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc" | sudo apt-key add -
# or
sudo apt-key adv --keyserver "hkps.pool.sks-keyservers.net" --recv-keys "0x6B73A36E6026DFCA"
# L_D_H
# Run Repository Update.
sudo apt-get update
# Install RabbitMQ Server.
sudo apt-get install rabbitmq-server
# Check RabbitMQ Server Status.
sudo systemctl status rabbitmq-server.service
# If RabbitMQ is not running, then start service with this command:
sudo systemctl start rabbitmq-server.service
# Enable RabbitMQ service on system boot.
sudo systemctl enable rabbitmq-server
# Allow RabbitMQ Management UI Through Firewall
sudo ufw allow 15672
# by default, ‘Installation Management Console’ plugin is not enabled
# let us take a look at all the RabbitMQ plugins that are available
sudo rabbitmq-plugins list
# Now enable the RabbitMQ Management plugin
sudo rabbitmq-plugins enable rabbitmq_management
# create a user with username ‘admin’ and password is also ‘admin’.
sudo rabbitmqctl add_user admin admin
# Now we tag our user ‘admin’, which we created in the steps above, as ‘administrator’
sudo rabbitmqctl set_user_tags admin administrator
# we are ready to restart RabbitMQ service
sudo systemctl restart rabbitmq-server.service
# Before we access Management UI, let us check the ports on the server
sudo netstat -tunlp
# Management UI access
http://localhost:15672
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment