diff --git a/doc/mongo.md b/doc/mongo.md new file mode 100644 index 0000000..186e40b --- /dev/null +++ b/doc/mongo.md @@ -0,0 +1,46 @@ +# Setup MongoDB + +* install wget to import the GPG key of MongoDB +``` +sudo apt install wget --no-install-recommends +``` + +* import the GPG key of MongoDB from its official website +``` +wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add - +``` + +* enable the MongoDB repository +``` +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 +``` + +* update apt repository cache +``` +sudo apt update +``` + +* install MongoDB +``` +sudo apt install mongodb-org --no-install-recommends +``` + +* start MongoDB using systemd +``` +sudo systemctl start mongod +``` + +* enable MongoDB using systemd +``` +sudo systemctl enable mongod +``` + +* verify MongoDB using systemd +``` +sudo systemctl status mongod +``` + +* check the installed version of MongoDB +``` +mongod --version +``` diff --git a/doc/mongo.md.license b/doc/mongo.md.license new file mode 100644 index 0000000..3c4280e --- /dev/null +++ b/doc/mongo.md.license @@ -0,0 +1,5 @@ +/* + * SPDX-FileCopyrightText: 2022 Software Ingenieur Begerad + * + * SPDX-License-Identifier: CC0-1.0 + */