如何使用apt-get在Ubuntu上安装最新版本的mongodb-clients?apt-get install mongodb-clients仅安装2.4.9版本。
apt-get
mongodb-clients
apt-get install mongodb-clients
2.4.9
mrwjdhj31#
在Ubuntu 16.04上获取4.2 mongo客户端
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.listsudo apt-get updatesudo apt-get install mongodb-org-shell
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
sudo apt-get update
sudo apt-get install mongodb-org-shell
字符串
mcvgt66p2#
使用官方MongoDB文档,他们已经提到了如何安装您选择的版本。Steps for installation for Ubuntu 12.04 and 14.04对于Ubuntu 16.04使用this
sudo rm /etc/apt/sources.list.d/mongodb*.list
jfgube3f3#
mongodb 3.2支持以下软件包。为了使用mongo shell,您需要安装mongo-org-shell。根据您的需求选择合适的软件包。install mongodb on ubuntux1c 0d1x的数据
u7up0aaq4#
你可以通过遵循these instructions或使用像这样的Ansible在Ubuntu上安装mongodb shell。在撰写本文时,这个ansible role安装了mongo shell 4.2.5版本:
user@some-host:~/some-dir$ mongo --versionMongoDB shell version v4.2.5git version: xOpenSSL version: OpenSSL yallocator: zmodules: nonebuild environment: distmod: ubuntu1804 distarch: x86_64 target_arch: x86_64
user@some-host:~/some-dir$ mongo --version
MongoDB shell version v4.2.5
git version: x
OpenSSL version: OpenSSL y
allocator: z
modules: none
build environment:
distmod: ubuntu1804
distarch: x86_64
target_arch: x86_64
vfhzx4xs5#
20.04焦点还没有设置,但你可以使用说明仿生(18.04)成功。我做到了!雷。
5条答案
按热度按时间mrwjdhj31#
在Ubuntu 16.04上获取4.2 mongo客户端
字符串
mcvgt66p2#
使用官方MongoDB文档,他们已经提到了如何安装您选择的版本。Steps for installation for Ubuntu 12.04 and 14.04
对于Ubuntu 16.04使用this
sudo apt-get update
进行检查。更新时,它会显示您是否有任何存储库文件。如果有,请使用sudo rm /etc/apt/sources.list.d/mongodb*.list
删除它,然后安装MongoDBjfgube3f3#
mongodb 3.2支持以下软件包。为了使用mongo shell,您需要安装mongo-org-shell。根据您的需求选择合适的软件包。
install mongodb on ubuntu
x1c 0d1x的数据
u7up0aaq4#
你可以通过遵循these instructions或使用像

这样的Ansible在Ubuntu上安装mongodb shell。
在撰写本文时,这个ansible role安装了mongo shell 4.2.5版本:
字符串
vfhzx4xs5#
20.04焦点还没有设置,但你可以使用说明仿生(18.04)成功。我做到了!雷。