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)…
- Download mongodb linux legacy 64 bit Community Edition from Mongodb Download Center.
- Extract it.
- 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.
- restart the laptop
- Make a data/db directory
mkdir -p data/db
- Now we can run mongodb
mongod --dbpath=/home/user/data/db
- if you want run ‘mongo’ command? You must run it on another terminal.