# Tips list ## git tips git clone by ssh ```sh git clone ssh://git@192.168.2.166:3122/WFC/build.wfc.git git remote set-url origin git@192.168.2.166:3122/zhangsz/WFC/be.wfc.git ``` ## docker tips 使用 Docker 日志清理工具 你可以使用 Docker 提供的 docker system prune 命令来清理未使用的数据,包括日志文件: ```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 ```