How to Install RabbitMQ on Elementary OS Latest
In this tutorial, you will learn how to install RabbitMQ on Elementary OS Latest.
Prerequisites
Before we begin, make sure that you have the following prerequisites installed on your system:
- Elementary OS Latest installed on your system.
- A user account with sudo privileges.
Step 1: Update the System
First, update the system packages by running the following command:
sudo apt update && sudo apt upgrade
Step 2: Install Erlang
RabbitMQ requires Erlang to be installed on your system. Run the following command to install Erlang:
sudo apt install erlang
Enter your sudo password when prompted.
Step 3: Download RabbitMQ
Download the RabbitMQ package by running the following command:
wget https://github.com/rabbitmq/rabbitmq-server/releases/download/v3.9.7/rabbitmq-server_3.9.7-1_all.deb
Step 4: Install RabbitMQ
Install the downloaded package using dpkg command as shown below:
sudo dpkg -i rabbitmq-server_3.9.7-1_all.deb
Step 5: Start RabbitMQ
After installation, start the RabbitMQ service by running the following command:
sudo systemctl start rabbitmq-server
To ensure that RabbitMQ starts on system boot, run the following command:
sudo systemctl enable rabbitmq-server
Step 6: Test RabbitMQ
To test if RabbitMQ is working, run the following command:
sudo rabbitmqctl status
If everything is working fine, you should see a message like this:
Status of node rabbit@localhost ...
[{pid,NNN},
{running_applications,[{rabbit,"RabbitMQ","3.9.7"},
{rabbit_common,[],"3.9.7"},
{oi,[],"1.8.1"},
{xmerl,[],"1.3.20"}]},
{os,{unix,linux}},
{erlang_version,"Erlang/OTP 23 [erts-11.2.6] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:64] [hipe] [dtrace]"},
{memory,[{total,30946208},
{connection_readers,0},
{connection_writers,0},
{connection_channels,0},
{connection_other,0},
{queue_procs,0},
{queue_slave_procs,0},
{plugins,0},
{other_proc,601760},
{mnesia,0},
{mgmt_db,0},
{msg_index,0},
{other_ets,123456}]},
{alarms,[]},
{listeners,[{clustering,25672,"::"},{amqp,5672,"::"}]},
{vm_memory_high_watermark,0.4},
{vm_memory_limit,224274135},
{disk_free_limit,50000000},
{disk_free,47646477568},
{file_descriptors,[{total_limit,64000},
{total_used,2},
{sockets_limit,58896},
{sockets_used,0}]},
{processes,[{limit,1048576},{used,130}]},
{run_queue,0},
{uptime,219},
{kernel,{net_ticktime,60}}]
Congratulations! You have successfully installed and started RabbitMQ on your Elementary OS Latest system. You can now start using it.
Conclusion
In this tutorial, we learned how to install and start RabbitMQ on Elementary OS Latest. If you face any errors during installation, make sure to check the RabbitMQ documentation for additional information.