Skip to content

Latest commit

 

History

History
31 lines (24 loc) · 769 Bytes

UBUNTU_INSTALL_MONGODB.md

File metadata and controls

31 lines (24 loc) · 769 Bytes

Ubuntu 22.04 Noble Numbat

Your processor must support AVX/AVX2 instructions.

# check
grep -qm1 '^flags.*avx' /proc/cpuinfo && echo OK || echo NOT OK

Add repository:

sudo apt install curl gnupg2
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
   sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg --dearmor
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
sudo apt update

Install:

sudo apt install -y mongodb-org
mongod --version
sudo systemctl start mongod
sudo systemctl status mongod
sudo systemctl enable mongod