mongodb 4.0后更改了许可证,想用旧许可证的{BANNED}{BANNED}最佳佳高到mongodb 3.7
在debian12上安装有了若干改变:
1、获得签名文件
$wget -qO - | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/mongodb-3.6.gpg > /dev/null
2、创建mongodb-org-3.6.list
deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/mongodb-3.6.gpg trusted=yes] stretch/mongodb-org/3.6 main
3、更新apt
$apt update
会提示mongodb gpg过期,不过没关系,忽略即可
4、安装mongodb-3.6
$sudo apt install mongodb-org
5、补充mongodb-3.6依赖的libssl
$wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.1_1.1.1n-0+deb11u5_amd64.deb
$sudo dpkg -i libssl1.1_1.1.1n-0+deb11u5_amd64.deb