📅  最后修改于: 2022-03-11 14:58:30.337000             🧑  作者: Mango
# ONLY FOR 64 BITs OSs (Raspberry needs Ubuntu Server 64bit)
# Install the MongoDB 4.4 GPG key:
wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -
# Add the source location for the MongoDB packages:
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
# Download the package details for the MongoDB packages:8sudo apt-get update
# Install MongoDB:
sudo apt-get install -y mongodb-org