Syamsul 'isul' Arifin

kartunis dan desainer

Mon, Aug 12, 2019

How to Install Mongodb on Debian 10

Mongodb has been not yet available on debian 10 repo or mongodb repo. It’s make we can’t installing mongodb on debian 10 . But we can install it manually (only on 64 bit hardware)…

  1. Download mongodb linux legacy 64 bit Community Edition from Mongodb Download Center.
  2. Extract it.
  3. Make mongodb path. We can put a script in .bashrc like this…

    export PATH=$PATH:/home/user/Downloads/mongodb-linux-x86_64-x.x.x/bin

    it’s assumed we have extracted mongodb file in /home/user/Downloads/mongodb-linux-x86_64-x.x.x.

  4. restart the laptop

  5. Make a data/db directory

    mkdir -p data/db
  6. Now we can run mongodb

    mongod --dbpath=/home/user/data/db
  7. if you want run ‘mongo’ command? You must run it on another terminal.

comments powered by Disqus