How To Install and Start Using RabbitMQ on Ubuntu 22.04 LTS Linux

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys in this video I'm going to show you how you can install and use rabbitmq on your Ubuntu operating system so for those of you who don't know what is rabbitmq rabbitmq is an open source message broker software which facilitates communication between two applications or two services so basically in software development we use rabbitmq to communicate between two services so for example if you want to send or exchange data between two Services you can use rabbitmq for that purpose so rabbit mq implements the protocol which is called Advanced message queuing protocol or in short it's called amqp so basically we use this protocol to communicate between two Services rabbitmq provides many Concepts and functionalities so I will recommend you to read about rabbitmq but basically in short if you want to design a system in which your services wants to communicate with each other you can explore the option of using rabbitmq so now let's see how we can install rabbitmq so first of all just open your favorite browser and search for rabbitmq and the first link which will appear here will be from rabbitmq.com and the first link which will appear here will be from rabbitmq.com so we are going to click on this link and here on the rabbitmq main home page you can read more about rabbitmq so you can see rabbit mq is most widely deployed open source message broker right and in order to get started with remit mq just click on get started where you will also see the download button so under get started you can see download plus installation so click on that and the most fastest way to get up and running with Revit mq is by using Docker right so if you have Docker there is this one command which you can use to just start Revit mq and use rabbitmq with your application whichever you are designing but if you want to install rabbitmq as a service on your Ubuntu operating system the procedure is little bit below so you can see installation guides and then you have the option for Linux Windows and Mac OS we want to do it on Ubuntu so we will choose this link which says Debian comma Ubuntu and here you have the installation procedure so when you will scroll down you can see it says team rabbit mq produces its own Debian packages and distributes them on these two mirrors and one more thing to note here is rabbit mq depends on error lungs so rabbit mq is written in erlang language and that's why you need to have a long installed on your Ubuntu operating system in order to use it but the procedure is straightforward so when you scroll little bit more down you will see under using rabbitmq apt repository on cloud Smith you will see this script here right so this is a whole script uh you can execute this script to get up and running with Revit mq and basically what it does it installs the basic require requirements like curl gnu PG and then apt transport https and then it just gets the signing key for rabbit mq and then it installs add long and its dependencies and then it installs uh rabbitmq server so what we are going to do is I'm going to just copy this script from start to end here and then I'm going to open my terminal by just pressing Ctrl alt T and then on my terminal I will create a file so let me CD to the downloads folder so that everything which is downloaded is in the downloads folder and here I'm going to create this script so I'm going to just name my script as so I'm going to just write touch and then rabbit mq dot sh or you can name it as rabbitmq setup.sh file which is going to create this rabbitmq dot sh file and then we are going to just paste the script which we have copied into this set of files so you can use any editor or for your choice to open this rabbitmq.sh file I'm going to use the visual studio code to open it but you can open this rabbitmq.sh file in any editor of your choice and here I'm going to just paste the script which I have copied and save it right so basically I have copied this script which is given on the install Debian page of rabbitmq from top to the bottom and then pasted it on my script file just save this file and then give executable permission to this file you can do that by just giving chmod command so just write CH mod plus X and then the name of the file which is rabbitmq.sh in my case once that's done we can just execute this file so just write dot forward slash rabbitmq dot sh and then press enter and then give your ubuntu's password and then press enter which is going to start the installation of rabbit mq using this script so at this point we will just wait for some time until this installation is finished so now the installation of rabbit mq is finished once the script is done you can see here the installation is finished the user is created I see in my case this error which is related to Jenkins which I was installing previously which has nothing to do with rabbit mq but this error is not related to a rabbit mq so I can ignore this right it's uh due to my previous installation of Jenkins but rabbit mq is installed as you can see here right so once rabbitmq is installed on our Ubuntu operating system let me clear the terminal and as I mentioned rabbit mq is installed as a service on our Ubuntu operating system so we can just check the status of rabbitmq server using system CTL command so you can write sudo system CTL status and then rabbit mq hyphen server and then press enter and it's going to show you the status of Revit mq server so in my case you can see it's active and running right now if you see that this server is not active or running you can enable it so so to exit from this system CTL command you can press Q to exit and if you see stop or not running here then you can just write enable and start right so first write enable here and once enable command is finished you can just start the rabbit mq server using this start command okay so in my case it's already running so I don't need to do it but it's if it's not running in your case just give system CTA will enable command first of all and then give systemctl start Command right like this now rabbitmq is running on your Ubuntu operating system but how to manage your rabbit mq server if you are an administrator of that rapidmq server let's see once you install rabbitmq it comes with the rabbitmq plugins which you can enable or disable at any time and one such plugin is called Management console which will allow you to manage your Revit mq server right now in order to check the list of plugins let me uh clear the terminal so to get the list of rabbitmq plugins you can give this command sudo rabbitmq hyphen plugins list and then press enter is going to give you the list of all the plugins which are available right so as I said one such plugin is called rabbitmq management right so we are going to enable this rabbitmq management plugin so for this you can give this command so let me clear the terminal once again and the command is sudo rabbitmq plugins enable and then the name of your plugin so in our case the plugin name is rabbitmq management so give this name and then press enter which is going to enable this rabbitmq plugin right so you can see the following plugin has been configured rabbitmq management rabbitmq agent and rabbitmq web dispatch so once you enabled the rabbitmq plugins once again when you give rabbitmq plugin list command you will see whatever plugins are enabled they have e here in front of them right whatever plugins which are not enabled they don't have anything in these square brackets but whatever plugins are enabled they have e in front of them that means they are enabled right so once the rabbit mq server is enabled you can once again go to your browser and here what you can do is you can give the Local Host command which is one two seven Dot 0.0.1 and then give the port of Revit mq which is colon 15672 this is the default Port okay so just write one five seven six seven two which is the default port for Revit mq Management console and then here you will see this kind of web page right where you need to give your username and password the username and password is really simple by default username and password for rabbit mq Management console is guest and guest so just write guest here and the password is also guest and then press enter and you can see we have successfully logged into Revit mq management server right so let me just resize this so that you can see the whole window here so on this main overview view page you will get the overview of your Revit mq server so how many uh messages are queued you can see the current status is Idle what is the rate of messages which are coming to your rabbitmq server it's also currently idle so everything the overview of your debit mq uh server you will be able to see here so you will be able to see number of connections channels how many is exchanges are created so these are all the basic concepts in rabbit and Q so when you will learn about amqp protocol you will also learn the concept of exchanges and queues channels and connections right also you will see more information about your Revit mq server here right if you want to dig deeper into connections channel exchange cues or any other properties you can have a look into these tabs so for example right now there is no connection but once you have connections here you will see the list of connections and you can delete or enable or disable or change the properties of those connections from here also you also have channels we have the exchanges by default these seven exchanges are already created on top of them you can create more exchanges here right also you can create cues in the admin tab you can see there is only one user which is an administrator which is the guest user which we used to log into our system right here we can add new users and then you can give the username and password here and then if you want to give this username and password to somebody else you can give it to them also you can set the tags here so admin have all the rights then monitoring policy maker management and other tags are here right also you have the virtual host by default the virtual host here is this forward slash but you can create other virtual host by clicking on the add a new virtual host option also you have the feature Flags so whatever you want to enable you can enable those from here also policies and then limits and then you also have the cluster properties right so so there are many things you can do from this rabbit mq Management console also you have the refresh rate so this is the refresh rate at which your page will be refreshed and you will see the real time or almost real time data of your queues right so I think that's it for this video I hope you have understood the basic concept of installing and using the rabbitmq Management console I hope you enjoyed this video and I will see you in the next video
Info
Channel: ProgrammingKnowledge
Views: 10,567
Rating: undefined out of 5
Keywords: installing rabbitmq on linux, ubuntu install erlang, rabbitmq install, start rabbitmq server, rabbitmq-server : depends: erlang-base, rabbitmq-plugins, how to install rabbitmq on windows 10, rabbitmq management, install rabbitmq linux​, rabbitmq c# tutorial​, install rabbitmq ubuntu 22.04​, uninstall rabbitmq ubuntu​, rabbitmqctl install​, linux rabbitmq​, start rabbitmq server linux​, wsl rabbitmq, ​
Id: N-AqOeaP8Ag
Channel Id: undefined
Length: 15min 15sec (915 seconds)
Published: Tue Jul 25 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.