2
0

feat: enhance build and setup

This commit is contained in:
zhangsz
2024-12-30 10:12:54 +08:00
parent c43c799ae0
commit 25f17f91bb
22 changed files with 372 additions and 201 deletions

View File

@@ -16,4 +16,31 @@ git clone by ssh
```sh
docker system prune -a
```
## java
安装 java 1.8
```sh
sudo apt update
sudo apt install openjdk-8-jdk
java -version
sudo update-alternatives --config java # 选择当前默认的java版本
```
## mongodb
安装mongodb, omada sdn controller 和依赖
```sh
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo apt update
sudo apt install -y mongodb-org
sudo systemctl start mongod
sudo systemctl enable mongod
sudo systemctl status mongod
sudo dpkg -i omada_v5.15.6.7_linux_x64_20241128140044_1733188152890.deb
sudo apt install --fix-broken
```