sudo nano /etc/apt/sources.list.d/bintray.rabbitmq.list code example
Example: install rabbitmq on ubuntu 18.04
sudo apt-get update -y
sudo apt-get install curl gnupg -y
curl -fsSL https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc | sudo apt-key add -
sudo apt-get install apt-transport-https
sudo apt-get update -y
sudo apt-get install rabbitmq-server -y --fix-missing