How to Install RabbitMQ Server on Ubuntu 20.04 & 18.04 LTS | vetechno
How to Install RabbitMQ Server on Ubuntu 20.04 LTS |
RabbitMQ is one of the most popular open-source message broker software. RabbitMQ is a lightweight application/software available for most popular operating systems like Ubuntu, windows. It implements the Advanced Message Queuing Protocol (AMQP) and Streaming Text Oriented Messaging Protocol, Message Queuing Telemetry Transport, and other protocols via Plugins. RabbitMQ supports multiple messaging protocols.
To meet high-scale, high-availability requirements, RabbitMQ can be easily deployed in distributed and federated configurations.
RabbitMQ is written in the Erlang programming language, it offers support for client interfaces and libraries for all major programming languages including NodeJS, Python, PHP, Java, etc.
RabbitMQ is a message-queuing / message-broker software that is used for sending and receiving messages between distributed systems, applications, and services.
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.
How to Install uTorrent 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.
How to Install uTorrent on Ubuntu 20.04 LTS.
How to install and setup Nord VPN on Ubuntu 20.04 LTS.
1. sudo user privileges
Step1. Update the current packages.
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
Step2. Remove erlang packages if already installed on your system.
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
Step4. Install RabbitMQ Server on Ubuntu 20.04 LTS.
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
Step5. Start RabbitMQ Service
vikash@vetechno:~$ sudo update-rc.d rabbitmq-server defaults
vikash@vetechno:~$ sudo service rabbitmq-server status
vikash@vetechno:~$ sudo service rabbitmq-server start / stop
Step6. Enable RabbitMQ to start at system boot.
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
Step7. Create Admin user for RabbitMQ Server.
By default, rabbitmq creates a user named “guest” with password “guest”. We can also create our own administrator account on RabbitMQ server using the following commands.
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 ".*" ".*" ".*"
Step8. Setup RabbitMQ Web Management Console dashboard.
RabbitMQ additionally presents a web management console for controlling the entire RabbitMQ. To enable web management console run the following command on your system
vikash@vetechno:~$ rabbitmq-plugins enable rabbitmq_management
RabbitMQ Web Management Console dashboard can be accessed on port 15672
For Eg. https://localhost:15672
Conclusion:-
Congratulation you have successfully installed RabbitMQ Server on Ubuntu 20.04 LTS and 18.04 LTS . Please let me know in the comment section if you are facing any issue while installing.
Happy Installing..!!!!
Comments
Post a Comment