0:00
Hello there and welcome to Renix Justuo and in this guide I'm going to show you how to install MongoDB on Ubuntu
0:11
So this guide is for all the Ubuntu derivatives as well. So let's get started
0:16
So just open up the terminal and execute these commands one by one
0:20
And you will find these commands in the description below. There will be an article
0:24
Just go to that article and copy and paste these links directly from there
0:30
So first of all, what we have to do, we have to get the key and we need to add that key in the system so that we can download the packages from the MongoDB repository
0:42
So just execute this command and it should print okay here. After that you have to add the repo
0:52
So for that, just execute this command and you will find it in the article
0:58
Just hit enter. hit enter and this will add the repo in the system now what we have to do we have to
1:04
update the repo so that we can install the MongoDB server so for that you can simply
1:10
type pseudo APT update and this will update all the repos that are available in the system
1:17
so after executing this command let me just clear the terminal you can simply type
1:23
pseudo APD install MongoDB and ORG and this will show you these tools that are available here
1:36
For example, this will install MongoDB server and shell and some tools
1:42
So you just have to press buy and hit Enter and this will download some data around 100 megabytes So let wait for it so it has done the installation now we can start
1:59
the server and to start the server you can type pseudo service mongo d start and hit enter and now
2:09
if we check the status then we should see the service is running right now we can execute the
2:17
shell and for that just type Mongo and this will execute the shell so we have
2:25
the shell opened here so now let me execute the help function that is db
2:32
help and this should print all the functions that are available for example if
2:37
you want to check the status of the database then you can exclude this function
2:41
here or if you want to get the server status then you can exclude this
2:46
function so let's exclude this one Now, let's execute this one, the dv. version
2:51
This will print the version of the MongoDB. So, that is type dv
2:55
VIII version and this is saying it's 4.2.8. And we can also execute similar functions here, that is stats
3:06
And this will give you all the stats. So MongoDB is up and running
3:10
So now you can use it for whatever project you want. And you can also install MongoDB compass so that you can grab you
3:17
do all this stuff that we usually do in a database like creating the database, inserting
3:23
some data, creating tables and those kind of stuff. So that's it, guide in this video, how to install MongoDB on Ubuntu or any of its derivative
3:32
Hope you find this video helpful if you did, then do not forget to subscribe to our channel if you haven't already
3:38
And do let me know what you think about it and I'll catch you in the next one. Till then, take care and keep enjoying Linux