Skip to content

Instantly share code, notes, and snippets.

@iyusa
Created March 25, 2020 05:43
Show Gist options
  • Save iyusa/6ee06a6d5df1b21ab27d732c38a14b6f to your computer and use it in GitHub Desktop.
Save iyusa/6ee06a6d5df1b21ab27d732c38a14b6f to your computer and use it in GitHub Desktop.
[Mongo] #mongo #mongosb

Instalation

sudo nano /etc/yum.repos.d/mongodb.repo

# isi dengan:
[MongoDB]
name=MongoDB Repository
baseurl=http://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/4.2/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc

# install
sudo yum install mongodb-org

# start
systemctl start mongod
systemctl enable mongod

# check
mongod --version

# connect
mongo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment