From 614b5a0de59ffbc06c7f7cbf46fc5ce568a0bb37 Mon Sep 17 00:00:00 2001
From: Sascha Schulz <sschulz@dh-software.de>
Date: Mo, 30 Jun 2025 16:28:09 +0200
Subject: [PATCH] add mongodb installation

---
 index.html |   57 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 57 insertions(+), 0 deletions(-)

diff --git a/index.html b/index.html
index 74b9993..7cf03bd 100644
--- a/index.html
+++ b/index.html
@@ -5071,6 +5071,63 @@
 						<p>Eben angegebene Datei in Wireshark einstellen:</p>
 						<p>Bearbeiten > Einstellungen > Protocols > TLS > (Pre)-Master-Secret log filename</p>
 					</section>
+					<section>
+						Einrichtung eines Datenbank-Servers (Beispiel MongoDB)
+					</section>
+					<section>
+						<p>Datenbank installieren:</p>
+						<pre>
+							<code class="bash" data-trim data-line-numbers>
+								# Paketquellen aktualisieren
+								sudo apt update
+								
+								# Tools installieren
+								sudo apt install gnupg curl
+								
+								# GPG-Signatur herunterladen und importieren
+								curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
+								   sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
+								   --dearmor
+							</code>
+						</pre>
+					</section>
+					<section>
+						<pre>
+							<code class="bash" data-trim data-line-numbers>
+								# URL den Paketquellen hinzufügen
+								echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | \
+									sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
+								
+								# Paketquellen aktualisieren
+								sudo apt update
+								
+								# MongoDB installieren
+								sudo apt install mongodb-org
+							</code>
+						</pre>
+					</section>
+					<section>
+						<pre>
+							<code class="bash" data-trim data-line-numbers>
+								# systemd neuladen
+								sudo systemctl daemon-reload
+								
+								# Autostart aktivieren
+								sudo systemctl enable mongod
+								
+								# Dienst starten
+								sudo systemctl start mongod.service
+							</code>
+						</pre>
+					</section>
+					<section>
+						<p>Der Server sollte nun erreichbar sein:</p>
+						<pre>
+							<code class="bash" data-trim data-line-numbers>
+								mongosh
+							</code>
+						</pre>
+					</section>
 				</section>
 			</div>
 		</div>

--
Gitblit v1.9.3