100% found this document useful (1 vote)
152 views6 pages

MongoDb Installation

This document provides instructions for installing MongoDB Enterprise Edition on a Linux system using the yum package installer. It describes downloading the necessary packages, creating a yum repository configuration file, and using yum to install the MongoDB packages. It also explains how to start, stop, and enable MongoDB using the systemctl command. Finally, it shows how to connect to MongoDB using the mongo shell.

Uploaded by

srinu katams
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
152 views6 pages

MongoDb Installation

This document provides instructions for installing MongoDB Enterprise Edition on a Linux system using the yum package installer. It describes downloading the necessary packages, creating a yum repository configuration file, and using yum to install the MongoDB packages. It also explains how to start, stop, and enable MongoDB using the systemctl command. Finally, it shows how to connect to MongoDB using the mongo shell.

Uploaded by

srinu katams
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

MongoDB Installation

For Self Education Purpose: All rights reserved.


Install MongoDB Enterprise Edition

Installation using yum package installer

Pre-requisites
• For the installation , the internet access should be there
• Root access or sudo root privilege should be there.
Installation as rpm
Download the following packages
mongodb server package
mongodb tools
mongos
mongodb shell

For Self Education Purpose: All rights reserved.


Install MongoDB Enterprise Edition

• Follow these steps to install MongoDB Enterprise Edition using the yum
package manager.

• Create an /etc/yum.repos.d/mongodb-enterprise-4.4.repo file so that you


can install MongoDB enterprise directly using yum:
[mongodb-enterprise-4.4]
name=MongoDB Enterprise Repository
baseurl=https://repo.mongodb.com/yum/redhat/$releasever/mongodb-
enterprise/4.4/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.4.asc

For Self Education Purpose: All rights reserved.


Install MongoDB Enterprise Edition

• Install the MongoDB Enterprise packages.


• Issue the following command:
$ sudo yum install -y mongodb-enterprise

For Self Education Purpose: All rights reserved.


Starting MongoDB
• Starting mongoDB
# systemctl start mongod
• Stopping mongoDB
# systemctl stop mongod
• Enable automatic starting of mongoDB
# systemctl enable mongod

For Self Education Purpose: All rights reserved.


Connecting to MongoDB
• $ mongo
[root@wysheidmongodb2 etc]# mongo
MongoDB shell version v4.4.4
connecting to:
mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
Implicit session: session { "id" : UUID("e5fce377-3301-40fb-a499-bbd8565e8ee4") }
MongoDB server version: 4.4.4
---
The server generated these startup warnings when booting:
2021-04-03T00:18:46.753-04:00: Access control is not enabled for the database.
Read and write access to data and configuration is unrestricted
---
MongoDB Enterprise >
For Self Education Purpose: All rights reserved.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy