Monday, 10 September 2018

mongodb installation types



MongoDB can be installed in two ways.

a. Using tarball installation for different versions available.
    Download tar for different platforms from https://www.mongodb.com/download-center?  jmp=tutorials#enterprise
    Old releases-
    https://www.mongodb.com/download-center/enterprise/releases/archive

  - If you select tarball install, you need to edit the bashrc file for setting the environment variables and path for MongoDB with bin directory path.
  - you can install this using non-root user or root user





b. Using yum install way and configure yum repos for your hosts in below way.

e.g.

         vi /etc/yum.repos.d/mongodb-enterprise.repo

Add below text in this file for installing Mongo 3.6 version
[mongodb-enterprise]
name=MongoDB Enterprise Repository
baseurl=https://repo.mongodb.com/yum/redhat/$releasever/mongodb-enterprise/3.6/$basearch/
gpgcheck=1
enabled=1

gpgkey=https://www.mongodb.org/static/pgp/server-3.6.asc


Follow MongoDB official page for this.
https://docs.mongodb.com/manual/tutorial/install-mongodb-enterprise-on-red-hat/


Ensure that you have pre-requisites ready before you install MongoDB on selected platform.
         -Using yum repo installation  will configure all Linux paths for you and set environment within bashrc
   - You can install this using non-root user or root user where non root is recommended


No comments:

Post a Comment

Configure certificate based authentication for mongodb (MongoDB-X509 authentication)

A . Spawn mongod and mongos with no authentication first Configure MongoDB cluster, with no authentication, enabled using config files ...