curl -fsSL https://pgp.mongodb.com/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
sudo apt update
sudo apt install mongodb-org
sudo service mongod start
root@tacit-quartz:~# sudo service mongod status
× mongod.service - MongoDB Database Server
Loaded: loaded (/lib/systemd/system/mongod.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Mon 2024-05-13 12:11:51 MSK; 1s ago
Docs: https://docs.mongodb.org/manual
Process: 3296 ExecStart=/usr/bin/mongod --config /etc/mongod.conf (code=exited, status=14)
Main PID: 3296 (code=exited, status=14)
CPU: 30ms
May 13 12:11:51 tacit-quartz.aeza.network systemd[1]: Started MongoDB Database Server.
May 13 12:11:51 tacit-quartz.aeza.network mongod[3296]: {"t":{"$date":"2024-05-13T09:11:51.344Z"},"s":"I", "c":"CONTROL", "id":7484500, "ctx":"main","msg":"Environment variable MONGODB_CONFIG_OVERRIDE_>
May 13 12:11:51 tacit-quartz.aeza.network systemd[1]: mongod.service: Main process exited, code=exited, status=14/n/a
May 13 12:11:51 tacit-quartz.aeza.network systemd[1]: mongod.service: Failed with result 'exit-code'.