Last Updated on August 28, 2022 by Vikash Ekka
How to Install RabbitMQ Server on Ubuntu 20.04 LTS |
In this tutorial we will help you to install RabbitMQ server on Ubuntu 20.04 LTS and Ubuntu18.04 LTS.
Also Read:-
How to install Brave Browser on Ubuntu 20.04 LTS.
Prerequisites :-
1. sudo user privileges
Let’s get started step by step:-
Step1. Update the current packages.
vikash@vetechno:~$ sudo apt update && sudo apt upgrade
vikash@vetechno:~$ sudo apt purge erlang*
Step3. Add RabbitMQ Repository on Ubuntu 20.04 LTS.
vikash@vetechno:~$ echo 'deb http://www.rabbitmq.com/debian/ testing main' | sudo tee /etc/apt/sources.list.d/rabbitmq.list deb http://www.rabbitmq.com/debian/ testing main vikash@vetechno:~$ wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add - --2021-10-18 00:37:46-- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc Resolving www.rabbitmq.com (www.rabbitmq.com)... 104.20.10.224, 172.67.16.25, 104.20.11.224, ... Connecting to www.rabbitmq.com (www.rabbitmq.com)|104.20.10.224|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3187 (3.1K) [application/pgp-signature] Saving to: ‘STDOUT’ - 100%[==========================================================>] 3.11K --.-KB/s in 0.001s 2021-10-18 00:37:47 (3.80 MB/s) - written to stdout [3187/3187] OK
vikash@vetechno:~$ sudo apt update vikash@vetechno:~$ sudo apt install rabbitmq-server ... .... .... ... ..... ... .... .... ... ..... ... .... .... ... ..... Suggested packages: erlang erlang-manpages erlang-doc xsltproc fop erlang-ic-java libmyodbc odbc-postgresql tdsodbc unixodbc-bin lksctp-tools The following NEW packages will be installed: erlang-asn1 erlang-base erlang-corba erlang-crypto erlang-diameter erlang-edoc erlang-eldap erlang-erl-docgen erlang-eunit erlang-ic erlang-inets erlang-mnesia erlang-nox erlang-odbc erlang-os-mon erlang-parsetools erlang-public-key erlang-runtime-tools erlang-snmp erlang-ssh erlang-ssl erlang-syntax-tools erlang-tools erlang-xmerl libodbc1 libsctp1 rabbitmq-server socat 0 upgraded, 28 newly installed, 0 to remove and 9 not upgraded. Need to get 24.8 MB of archives. After this operation, 41.5 MB of additional disk space will be used. Do you want to continue? [Y/n] Y
vikash@vetechno:~$ sudo update-rc.d rabbitmq-server defaults vikash@vetechno:~$ sudo service rabbitmq-server status vikash@vetechno:~$ sudo service rabbitmq-server start / stop
vikash@vetechno:~$ sudo update-rc.d rabbitmq-server defaults
OR
vikash@vetechno:~$ sudo systemctl enable rabbitmq-server vikash@vetechno:~$ sudo systemctl start rabbitmq-server vikash@vetechno:~$ sudo systemctl stop rabbitmq-server
vikash@vetechno:~$ sudo rabbitmqctl add_user admin password vikash@vetechno:~$ sudo rabbitmqctl set_user_tags admin administrator vikash@vetechno:~$ sudo rabbitmqctl set_permissions -p / admin ".*" ".*" ".*"
vikash@vetechno:~$ rabbitmq-plugins enable rabbitmq_management
Conclusion:-