ubuntu22安装mangodb数据库

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

sudo apt-get update

Inst

你可能感兴趣的:(mysql,数据库,mongodb)