Skip to content

Install MongoDB v5#

The system requirements of MongoDB can be found here.

In addition, MongoDB provides a checklist for use in operation.

Recommendation

We describe the use of Debian GNU/Linux version 11 "bullseye" as the operating system under which i-doit should be run.

MongoDB currently does not officially support Debian 11. However, we were able to use MongoDB with the Forms add-on in several test installations.

On the terminal, we run the following commands:

Ubuntu ships with gnupg, for Ubuntu users this step can be skipped.

We install gnupg:

1
sudo apt-get install gnupg

We import the public key for the mongodb-org repository:

1
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -

Now we create a sources file for MongoDB:

This repo is to be used for Debian only!

1
echo "deb http://repo.mongodb.org/apt/debian buster/mongodb-org/5.0 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list 

This repo is to be used for Ubuntu 20.04 only!

1
echo "deb http://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list 

Now we update the local package database:

1
sudo apt-get update

Now we can install MongoDB:

1
sudo apt-get install -y mongodb-org

Next, we reload the services:

1
sudo systemctl daemon-reload

So that MongoDB is started at the next system start:

1
sudo systemctl enable mongod

Now we start MongoDB:

1
sudo systemctl start mongod

Continue to the installation of NodeJS