📌  相关文章
📜  如何在 ubuntu 20.04 lts fossa 中安装 mongodb - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:49:47.657000             🧑  作者: Mango

代码示例1
sudo apt update
# Import the public key used by the package management system
# The operation should respond with an OK.
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
# Create a list file for MOngoDB
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
# Reload localpackage database
sudo apt update
#Install MongoDB packages
sudo apt install -y mongodb-org