Install MongoDB Community Edition
Table of Contents
import Tabs from ‘@theme/Tabs’; import TabItem from ‘@theme/TabItem’;
Requirements #
sudo apt-get install gnupg curl
Configure apt
#
Import MongoDB publis GPG key:
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
Create apt
list:
Update apt
package database:
apt update
Install the latest version:
apt install -y mongodb-org