Fraser
14
Q:

install mongodb

wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
sudo apt-get update
sudo apt-get install -y mongodb-org
2
mongo -version
0
1 - download .msi from below site
https://www.mongodb.com/try/download/community?tck=docs_server
2 - go to dir & run 'mongo' command
"C:\Program Files\MongoDB\Server\4.4\bin\mongo.exe"
>mongo
3 - to start server
>mongod // run this command from where data dir is exists while installing mongodb
1
mongo --version
0
touch .bash_profile
0

New to Communities?

Join the community