How To Install MongoDB 4.4 on CentOS 7

M ongo DB is the Open-source Database Management system(DBMS), It is also the non relational database, nosql database. It storing the data a...



Mongo DB is the Open-source Database Management system(DBMS), It is also the non relational database, nosql database.

It storing the data as a documents, Instead of rows and columns.

The Document storage function format called BSON, where the binary style of  JSON File Format.

Step1: To Add the Mongo DB repositories in Local:

 Adding the MongoDB repositories (MongoDB-org) to our servers (it is not default repositories in centos, so adding to the local server).

 Command: sudo vi /etc/yum.repos.d/mongodb-org.repo

Adding the repo name as mongodb-org.repo inside etc/yum.repos.d directory.

yum.repos.d is a directory, which is used to store the new or existing repositories in our server locally.

Step2:  

pasting the MongoDB repositories information in /etc/yum.repos.d/mongodb-org.repo.

[mongodb-org-3.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-3.4.asc

[mongodb-org-4.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.0/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.0.asc

[mongodb-org-4.2]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc

[mongodb-org-4.4]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/7Server/mongodb-org/4.4/x86_64/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc

Step3:

checking the mongodb exists within the yum utility repolist command displays all enabled repositories.

 yum repolist

Step4: Install the mongodb.org, start, reload and check the status of the server.

Commands: 

sudo yum -y install mongodb-org
sudo systemctl start mongod
sudo systemctl status mongod

To stop the Mongo server.

Command: sudo systemctl stop mongod

Step5: Checking mongo installed version

After installing the Mongo db server need to check the version here Installed version was 4.4. 

Command: mongod --version

To Check the Mongod Running status using Netstat command.

Command: netstat -antup | grep -i 27017






COMMENTS

Name

AWS,1,Devops,11,linux,9,
ltr
item
Techie View: How To Install MongoDB 4.4 on CentOS 7
How To Install MongoDB 4.4 on CentOS 7
https://1.bp.blogspot.com/-1Hf-r9Wnep8/X5fubZZBzyI/AAAAAAAAAIQ/rbJiAjkeb2oaVg2ij_ER1-8SzuFLyzi0wCLcBGAsYHQ/w169-h171/PngItem_3850320.png
https://1.bp.blogspot.com/-1Hf-r9Wnep8/X5fubZZBzyI/AAAAAAAAAIQ/rbJiAjkeb2oaVg2ij_ER1-8SzuFLyzi0wCLcBGAsYHQ/s72-w169-c-h171/PngItem_3850320.png
Techie View
https://www.techiev.com/2020/10/how-to-install-mongodb-44-42-40-34-on.html
https://www.techiev.com/
https://www.techiev.com/
https://www.techiev.com/2020/10/how-to-install-mongodb-44-42-40-34-on.html
true
7013663511659419322
UTF-8
Loaded All Posts Not found any posts VIEW ALL View Full Article Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy