Skip to content

Commit

Permalink
Merge pull request #140 from lyz508/feat/mongodb-installation
Browse files Browse the repository at this point in the history
feat: update mongodb installation steps
  • Loading branch information
ianchen0119 authored Jul 1, 2024
2 parents 30022b6 + 1592f6f commit bc72c84
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions docs/guide/3-install-free5gc.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,43 @@ source ~/.bashrc

```
sudo apt -y update
sudo apt -y install mongodb wget git
sudo systemctl start mongodb
sudo apt -y install wget git
```

* Install MongoDB Community Edition (check [this appendix section](./Appendix.md#appendix-g-install-mongodb-70x-on-ubuntu-server-220403) for more information)
1. Import the public key used by the package management system
```
sudo apt install -y gnupg curl
curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | \
sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor
```
2. Create a list file for MongoDB
```
# Ubuntu 22.04 (Jammy)
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
# Ubuntu 20.04 (Focal)
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/7.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-7.0.list
```
- you can determine the release by running `cat /etc/lsb-release`
3. Reload local package database & Install the MongoDB packages
```
sudo apt update
sudo apt install -y mongodb-org
```
4. Run MongoDB Community Edition
```
# using systemd
sudo systemctl start mongod
sudo systemctl status mongod
sudo systemctl enable mongod # optional
# using init
sudo service mongod start
sudo service mongod status
```
* **WARNING: MongoDB 5.0+ requires a CPU with AVX support. Or downgrade your MongoDB to 4.4**
* see [this post on MongoDB's official forum](https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2)
* see also [docker-library/mongo#485 (comment)](https://github.com/docker-library/mongo/issues/485#issuecomment-891991814)
* see [this post on MongoDB's official forum](https://www.mongodb.com/community/forums/t/mongodb-5-0-cpu-intel-g4650-compatibility/116610/2)
* see also [docker-library/mongo#485 (comment)](https://github.com/docker-library/mongo/issues/485#issuecomment-891991814)

**Note:** If you are using Ubuntu 22.04.x and you face issues, please, check [this appendix section](./Appendix.md#appendix-g-install-mongodb-70x-on-ubuntu-server-220403)

4\. User-plane Supporting Packages

Expand Down

0 comments on commit bc72c84

Please sign in to comment.