Getting Started with MongoDB 4.4 on CentOS 7: A Step-by-Step Installation Guide

M ongo DB is the Open-source Database Management system(DBMS), It is also the non-relational database, NoSQL database. It stores the data as...



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

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

The Document storage function format is 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 the 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 the 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 the Netstat command.

Command: netstat -antup | grep -i 27017



----------------------------------------!!!! Happy Learning with Techiev !!!!!!!!----------------------------------

-------------------------Subscribe our Youtube Channel by clicking the below link---------------------- ----------------------------!!https://www.youtube.com/@techieview729!!---------------------


Name

AWS,19,CNCF,8,Devops,37,linux,11,
ltr
item
Techie View: Getting Started with MongoDB 4.4 on CentOS 7: A Step-by-Step Installation Guide
Getting Started with MongoDB 4.4 on CentOS 7: A Step-by-Step Installation Guide
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDLzuwoB-JB2B9W1u9BEvhm_cHIXIivn0ymTtLw3cq1lTE7z0C0gU2ce7Ekbzc0q2YKJHK_iarbtwQBxHU-PaSrB0943SfZq4zONsawOjDu_gq_YSgNOO-WXV4gQMOxgLwnfVzt9FAoWwJ/w169-h171/PngItem_3850320.png
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDLzuwoB-JB2B9W1u9BEvhm_cHIXIivn0ymTtLw3cq1lTE7z0C0gU2ce7Ekbzc0q2YKJHK_iarbtwQBxHU-PaSrB0943SfZq4zONsawOjDu_gq_YSgNOO-WXV4gQMOxgLwnfVzt9FAoWwJ/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