Skip to content

Commit b0e2e8c

Browse files
authored
Add instruction to install MongoDB 4.4 [skip ci]
1 parent 35318b9 commit b0e2e8c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,24 @@ Follow the instruction on nodejs.org: https://nodejs.org/en/download/package-man
1414

1515
### 2. Mongo DB v4.4
1616

17-
Follow the procedure described on the following link to install the latest version of Mongodb: https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-ubuntu/
17+
Follow the procedure described on the following link to install the version 4.4 of Mongodb: https://www.mongodb.com/docs/v4.4/tutorial/install-mongodb-on-ubuntu/
18+
19+
For example, the following commands will install MongoDB 4.4 on Ubuntu server 22.04:
20+
21+
```bash
22+
# install libssl1.1
23+
echo "deb http://security.ubuntu.com/ubuntu focal-security main" | sudo tee /etc/apt/sources.list.d/focal-security.list
24+
sudo apt-get update
25+
sudo apt-get install libssl1.1
26+
# install MongoDB 4.4
27+
sudo apt-get install gnupg curl
28+
curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | \
29+
sudo gpg -o /usr/share/keyrings/mongodb-server-4.4.gpg \
30+
--dearmor
31+
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-4.4.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list
32+
sudo apt-get update
33+
sudo apt-get install -y mongodb-org
34+
```
1835

1936
## Usage
2037

0 commit comments

Comments
 (0)