linux,debain安装mongodb

mongodb的版本为:4.4+

官方地址:https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-debian/

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sudo apt-get install gnupg curl

curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | \
   sudo gpg -o /usr/share/keyrings/mongodb-server-4.4.gpg \
   --dearmor

echo "deb [ signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] http://repo.mongodb.org/apt/debian buster/mongodb-org/4.4 main" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list

sudo apt-get update


sudo apt-get install -y mongodb-org
1
sudo systemctl start mongod
使用 Hugo 构建
主题 StackJimmy 设计