Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Install MongoDB on CentOS 7  (Read 1164 times)

0 Members and 1 Guest are viewing this topic.

aravindm

  • Guest
Install MongoDB on CentOS 7
« on: January 27, 2018, 04:52:42 pm »
MongoDB is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas.


1. Add the MongoDB Repository and insert in file.

Code: [Select]
# sudo vi /etc/yum.repos.d/mongodb-org.repo
Quote
[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

2. Update repolist

Code: [Select]
# yum repolist
3. Installing MongoDB

Code: [Select]
# sudo yum install mongodb-org
4. start the MongoDB service

Code: [Select]
# systemctl start mongod
 ;)