Skip to content

Instantly share code, notes, and snippets.

@erangaeb
Last active February 23, 2024 14:12
Show Gist options
  • Save erangaeb/ccb616cfd92062a184752fe9a8f141bf to your computer and use it in GitHub Desktop.
Save erangaeb/ccb616cfd92062a184752fe9a8f141bf to your computer and use it in GitHub Desktop.
Install mongodb in lxc container
# GPG keys
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv EA312927
# list file for MongoDB
echo "deb http://repo.mongodb.org/apt/ubuntu trusty/mongodb-org/3.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.2.list
# install
sudo apt-get update
sudo apt-get install -y mongodb-org
# connect to mongodb
mongo --port 27017 --host localhost
# reference
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
@nicodemo71
Copy link

nicodemo71 commented Feb 23, 2024

Hi, if you want to install mongodb community edition on debian 11, it is necessary to use 4.x version link to mongo installation.

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