Installing Erlang and RabbitMQ Ubuntu 18.04 - jordy33/turbogears_tutorial GitHub Wiki
Step 1: Import Erlang GPG Key Run the following commands to import Erlang repository GPG key
wget -O- https://packages.erlang-solutions.com/ubuntu/erlang_solutions.asc | sudo apt-key add -
Step 2: Add the Erlang Repository Once you have imported the key, add the repository to your Ubuntu 18.04 system by running the following commands:
echo "deb https://packages.erlang-solutions.com/ubuntu bionic contrib" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
Step 3: Install Erlang The last step is the actual installation of Erlang. Update your system package list and install Erlang
sudo apt update
sudo apt -y install erlang
To start Erlang shell, run the command:
erl
Step 4: Add RabbitMQ Repository To Ubuntu 18.04
wget -O- https://dl.bintray.com/rabbitmq/Keys/rabbitmq-release-signing-key.asc | sudo apt-key add -
wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add -
Step 5: Now add RabbitMQ Repository To Ubuntu 18.04:
echo "deb https://dl.bintray.com/rabbitmq/debian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/rabbitmq.list
Step 6: Install RabbitMQ Server Ubuntu 18.04 LTS
sudo apt update
sudo apt -y install rabbitmq-server
After installation, RabbitMQ service is started and enabled to start on boot. To check the status, run:
sudo systemctl status rabbitmq-server.service
You can confirm if the service is configured to start on boot using the command:
systemctl is-enabled rabbitmq-server.service
If it returns disabled, enable it by running:
sudo systemctl enable rabbitmq-server
Enable the RabbitMQ Management Dashboard
sudo rabbitmq-plugins enable rabbitmq_management
The Web service should be listening on TCP port 15672
Access it by opening the URL
http://[server IP|Hostname]:15672