0% found this document useful (0 votes)
66 views1 page

MongoDB 5.0 Installation

This document provides instructions for installing MongoDB on Red Hat systems. It describes adding the MongoDB yum repository, installing MongoDB with yum either via the latest stable version or a specific release, and starting, stopping, and checking the status of the mongod service. It also lists the default data and log directories for MongoDB and provides additional links for installing and configuring MongoDB.

Uploaded by

manjunath61
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
66 views1 page

MongoDB 5.0 Installation

This document provides instructions for installing MongoDB on Red Hat systems. It describes adding the MongoDB yum repository, installing MongoDB with yum either via the latest stable version or a specific release, and starting, stopping, and checking the status of the mongod service. It also lists the default data and log directories for MongoDB and provides additional links for installing and configuring MongoDB.

Uploaded by

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

Ref: https://www.mongodb.com/docs/v5.

0/tutorial/install-mongodb-on-red-hat/

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

To install the latest stable version of MongoDB, issue the following command:
sudo yum install -y mongodb-org

Alternatively, to install a specific release of MongoDB, specify each component


package individually and append the version number to the package name, as in the
following example:
sudo yum install -y mongodb-org-5.0.14 mongodb-org-database-5.0.14 mongodb-org-
server-5.0.14 mongodb-org-shell-5.0.14 mongodb-org-mongos-5.0.14 mongodb-org-tools-
5.0.14

systemctl status mongod.service


systemctl start mongod.service
systemctl stop mongod.service

Data Directory: /var/lib/mongo


Log Directory: /var/log/mongodb

https://stackoverflow.com/questions/68742794/mongodb-failed-result-core-dump

https://repo.mongodb.org/yum/redhat/

max locked memory (kbytes, -l) 64 > unlimited


open files (-n) 1024 > 64000
max user processes (-u) 14783 > 64000

You might also like