MongoDB
 sql >> Base de Dados >  >> NoSQL >> MongoDB

Problemas ao instalar o Mongodb no Ubuntu 20.04

  1. comece removendo todos os repositórios PPA do mongodb, então:
  2. sudo apt-get purge mongodb-org*
  3. sudo apt remove mongodb
  4. sudo apt purge mongodb
  5. sudo apt autoremove
  6. sudo rm -r /var/log/mongodb
  7. sudo rm -r /var/lib/mongodb
  8. sudo apt-get install gnupg
  9. wget -qO - https://www.mongodb.org/ static/pgp/server-4.4.asc | sudo apt-key add -
  10. 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
  11. sudo apt-get update
  12. sudo apt-get upgrade
  13. sudo apt update
  14. sudo apt upgrade
  15. sudo apt-get install -y mongodb-org
  16. sudo apt-get install libc6
  17. sudo service mongod start
  18. status do mongod do serviço sudo

Isso me ajudou com o problema