SlideShare a Scribd company logo
Packages
MongoDB provides officially supported packages in their own repository. This
repository contains the following packages:
mongodb-org
This package is a metapackage that will automatically install the four component
packages listed below.
mongodb-org-server
This package contains the mongod daemon and associated configuration and init
scripts.
mongodb-org-mongos
This package contains the mongos daemon.
mongodb-org-shell
This package contains the mongo shell.
mongodb-org-tools
This package contains the following MongoDB tools: mongoimport bsondump,
mongodump, mongoexport, mongofiles, mongooplog, mongoperf, mongorestore,
mongostat, and mongotop.
/etc/mongod.conf
Configure the package management system (yum).
Step1:
_____________________________________________
vi /etc/yum.repos.d/mongodb-org-3.0.repo
[mongodb-org-3.0]
name=MongoDB Repository
baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/x86_64/
gpgcheck=0
enabled=1
Step2:
_____________________________________________
Install the MongoDB packages and associated tools
sudo yum install mongodb-org
Step3:
_____________________________________________
Configure SELinux
vi /etc/selinux/config
SELINUX=disabled
SELINUX=permissive
Step4:
______________________________________________
Start MongoDB
sudo service mongod start
Step5:
______________________________________________
Verify that MongoDB has started successfully
tail -10f /var/log/mongodb/mongod.log
You can optionally ensure that MongoDB will start following a system reboot by
issuing the following command:
______________________________________________
sudo chkconfig mongod on
Step6:
___________________________________________
Stop MongoDB
sudo service mongod stop
Step7:
____________________________________________
Restart MongoDB
sudo service mongod restart
/****************Uninstall MongoDB***************/
Step1: Stop MongoDB
sudo service mongod stop
Step2: Remove Packages
sudo yum erase $(rpm -qa | grep mongodb-org)
Step3:Remove Data Directories.
sudo rm -r /var/log/mongodb
sudo rm -r /var/lib/mongo

More Related Content

PPT
download presentation
PPTX
Filter and object
PDF
Exploiting null byte vm
PPTX
33 meta
PDF
Deploying Heterogeneous Artifacts to the Cloud with OSGi - Neil Bartlett
PDF
How to install Odoo 13 in Ubuntu ?
PDF
Vagrant - Team Development made easy
PPT
Nodejs quick start
download presentation
Filter and object
Exploiting null byte vm
33 meta
Deploying Heterogeneous Artifacts to the Cloud with OSGi - Neil Bartlett
How to install Odoo 13 in Ubuntu ?
Vagrant - Team Development made easy
Nodejs quick start

What's hot (11)

DOCX
Solaris mysql sop
KEY
Why Bundler 1.1 will be much faster
PDF
Mac OS X Lion で作る WordPress local 環境
DOCX
Download idm
PDF
The Most Used Methods To Penetrate A Web Server
PDF
Django district pip, virtualenv, virtualenv wrapper & more
PDF
Python & FUSE
PDF
.htaccess Cheatsheet
PDF
Cookies and sessions
PDF
Introduction to php web programming - sessions and cookies
PPT
4 exercises for part 1
Solaris mysql sop
Why Bundler 1.1 will be much faster
Mac OS X Lion で作る WordPress local 環境
Download idm
The Most Used Methods To Penetrate A Web Server
Django district pip, virtualenv, virtualenv wrapper & more
Python & FUSE
.htaccess Cheatsheet
Cookies and sessions
Introduction to php web programming - sessions and cookies
4 exercises for part 1
Ad

Similar to Install mongo db on centos (20)

PPTX
Lecture 7-Working Nodejs Packagempresenration.pptx
PDF
Python import mechanism
PPT
Mageguru - magento custom module development
PDF
How to Build Package in Linux Based Systems.
PDF
Magento 2 Front end Development in detail
PPTX
MongoDB basics & Introduction
PDF
An Introduction of Node Package Manager (NPM)
PDF
Mongo db program_installation_guide
PPTX
Node Session - 2
PPTX
Composer namespacing
PDF
Mdb dn 2016_08_tools
PPTX
Introduction to OSGi
PPTX
ReactJS software installation
PPTX
How to install ReactJS software
PPTX
Building Mage-OS - MageTitans 2023
PDF
A-Z_Maven.pdf
PPTX
U4-01-Node JS.pptxweasrdtfyhg[]"Piuytrhedfyguhijokpl
PDF
Nuget is easier than you think and you should be using it as both a consumer ...
PDF
Setting up mongo replica set
PPTX
RPM (LINUX)
Lecture 7-Working Nodejs Packagempresenration.pptx
Python import mechanism
Mageguru - magento custom module development
How to Build Package in Linux Based Systems.
Magento 2 Front end Development in detail
MongoDB basics & Introduction
An Introduction of Node Package Manager (NPM)
Mongo db program_installation_guide
Node Session - 2
Composer namespacing
Mdb dn 2016_08_tools
Introduction to OSGi
ReactJS software installation
How to install ReactJS software
Building Mage-OS - MageTitans 2023
A-Z_Maven.pdf
U4-01-Node JS.pptxweasrdtfyhg[]"Piuytrhedfyguhijokpl
Nuget is easier than you think and you should be using it as both a consumer ...
Setting up mongo replica set
RPM (LINUX)
Ad

Recently uploaded (20)

PDF
Unlocking AI with Model Context Protocol (MCP)
PPTX
Cloud computing and distributed systems.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Encapsulation theory and applications.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Big Data Technologies - Introduction.pptx
Unlocking AI with Model Context Protocol (MCP)
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Encapsulation theory and applications.pdf
Spectral efficient network and resource selection model in 5G networks
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
The AUB Centre for AI in Media Proposal.docx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Programs and apps: productivity, graphics, security and other tools
MIND Revenue Release Quarter 2 2025 Press Release
Review of recent advances in non-invasive hemoglobin estimation
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Per capita expenditure prediction using model stacking based on satellite ima...
Big Data Technologies - Introduction.pptx

Install mongo db on centos

  • 1. Packages MongoDB provides officially supported packages in their own repository. This repository contains the following packages: mongodb-org This package is a metapackage that will automatically install the four component packages listed below. mongodb-org-server This package contains the mongod daemon and associated configuration and init scripts. mongodb-org-mongos This package contains the mongos daemon. mongodb-org-shell This package contains the mongo shell. mongodb-org-tools This package contains the following MongoDB tools: mongoimport bsondump, mongodump, mongoexport, mongofiles, mongooplog, mongoperf, mongorestore, mongostat, and mongotop. /etc/mongod.conf Configure the package management system (yum). Step1: _____________________________________________ vi /etc/yum.repos.d/mongodb-org-3.0.repo [mongodb-org-3.0] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.0/x86_64/ gpgcheck=0 enabled=1 Step2: _____________________________________________ Install the MongoDB packages and associated tools sudo yum install mongodb-org Step3: _____________________________________________ Configure SELinux vi /etc/selinux/config SELINUX=disabled SELINUX=permissive Step4: ______________________________________________ Start MongoDB sudo service mongod start Step5: ______________________________________________ Verify that MongoDB has started successfully tail -10f /var/log/mongodb/mongod.log You can optionally ensure that MongoDB will start following a system reboot by issuing the following command:
  • 2. ______________________________________________ sudo chkconfig mongod on Step6: ___________________________________________ Stop MongoDB sudo service mongod stop Step7: ____________________________________________ Restart MongoDB sudo service mongod restart /****************Uninstall MongoDB***************/ Step1: Stop MongoDB sudo service mongod stop Step2: Remove Packages sudo yum erase $(rpm -qa | grep mongodb-org) Step3:Remove Data Directories. sudo rm -r /var/log/mongodb sudo rm -r /var/lib/mongo