Import the public key used by the package management system.
sudo apt-get install gnupg
curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \ sudo gpg -o
/usr/share/keyrings/mongodb-server-6.0.gpg \ --dearmor
Create a list file for MongoDB.
echo “deb [ arch=amd64,arm64
signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ]
https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse”
| sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
Create a list file for MongoDB.
To install the latest stable version, issue the following文章来源:https://www.toymoban.com/news/detail-486624.html
sudo apt-get update文章来源地址https://www.toymoban.com/news/detail-486624.html
Inst
到了这里,关于ubuntu22安装mangodb数据库的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!