You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
505 B
12 lines
505 B
1 month ago
|
# !/bin/bash
|
||
|
|
||
|
curl -fsSL https://www.mongodb.org/static/pgp/server-5.0.asc | \
|
||
|
sudo gpg -o /usr/share/keyrings/mongodb-server-5.0.gpg \
|
||
|
--dearmor
|
||
|
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-5.0.gpg ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
|
||
|
sudo apt-get update
|
||
|
sudo apt-get install -y mongodb-org
|
||
|
sudo systemctl start mongod
|
||
|
sudo systemctl status mongod
|
||
|
sudo systemctl enable mongod
|