在Ubuntu 20.04.6 LTS上安装MongoDB 5.0.19遇到缺少mongo二进制文件的问题,可以按照以下解决方法进行操作:
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt update
sudo apt install mongodb-org
sudo systemctl start mongod
sudo systemctl status mongod
sudo systemctl enable mongod
现在,你应该能够在Ubuntu 20.04.6 LTS上成功安装MongoDB 5.0.19并启动它了。