Install MongoDB on Linux System
8K views
Oct 24, 2024
Install MongoDB on Linux System
View Video Transcript
0:00
In this video we are discussing installation of MongoDB in the Linux environment
0:06
So, installation of MongoDB in the Linux system. So, open the terminal and then write the following comments
0:16
So, what is the first comment? That is, in the dollar prompt, we are typing pseudo-APT-GET, install MongoDB
0:24
and put the administration password to execute the task. You must be knowing the root password in that case
0:30
So, here you can type, here we have typed the respective command with this dollar prompt
0:35
and then the password will be asked, the password has been given and now this is coming
0:41
So now in the next step, what we shall do, we shall go for modify the update indexes using
0:48
the following command and then start the MongoDB service. So now how to do
0:53
So pseudo, then APT-h-gat update. There is the first comment to be issued
0:58
the second command, pseudo service MongoDB start. So at first we have issued the first comment and then we have issued the second command
1:07
and then the dollar prompt will be coming back. So these two commands are to be executed one after another in the sequence in which I have written
1:16
And then start the Mongo shell by typing Mongo in the terminal prompt
1:21
So now you can find that we are having the dollar prompt and here we have typed the Mongo
1:25
And you see the Mongo is getting loaded and this is the Mongo shell prompt and here we'll
1:31
be typing our comments. So let us go for one practical demonstration to show you that how this installation has taken
1:37
place in practice Now in this video we shall discuss that how to install MongoDB in our Linux environment So at first we are going to open our terminal here So this is the terminal and we have got the dollar prompt and here we be issuing the command that is pseudo APT gate install MongoDB
2:03
Then it will ask for the password, root password. then I shall give the password I shall press enter and then it will ask it will
2:12
just go on installing the MongoDB in the meantime it asks that do you want to
2:20
continue I press there yes and the installation has started and it will take some
2:26
time now we shall modify the update indexes using the following comment
2:37
so all the index will get updated in that case so the command is pseudo APT hyphen gate update
3:01
now we shall issue the command that is pseudo service MongoDB start now the MongoDB has started
3:05
Now to get the Mongo shell, we'll be going for Mongo. The command is Mongo
3:11
Now we have got this Mongo shell here. Now we shall issue the command that is the show DBs to see all the existing databases here
3:21
So here we are finding two databases admin and local. In this way the MongoDB can be installed in the Linux environment
3:28
Thanks for watching
#Programming
#Software