Last active
          February 23, 2024 14:12 
        
      - 
      
- 
        Save erangaeb/ccb616cfd92062a184752fe9a8f141bf to your computer and use it in GitHub Desktop. 
    Install mongodb in lxc container
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | # 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/ | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
            
Hi, if you want to install mongodb community edition on debian 11, it is necessary to use 4.x version link to mongo installation.