你好,我有点像 shell n00b。
谁能告诉我如何检查安装在我的 Linux Ubuntu 机器上的 MongoDB 版本?
我看到我的 MongoDB shell 版本:1.2.2,所以我很确定 MongoDB 本身也已经过时了。有谁知道任何“如何更新 MongoDB”文档?我发现 mongodb.org 有点困惑。
请,谢谢。
好的,如果我在 mongo shell 中使用 db.version(),它会显示 1.2.2
如果我 $ mongod --version 我得到这个:
db version v1.2.2, pdfile version 4.5
Wed Oct 16 10:28:22 git version: nogitversion
我跑了
sudo apt-get update
sudo apt-get install mongodb
得到
sudo apt-get install mongodb
Reading package lists... Done
Building dependency tree
Reading state information... Done
mongodb is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 179 not upgraded.
mongod --version
db version v1.2.2, pdfile version 4.5
Wed Oct 16 10:31:07 git version: nogitversion
那为什么不更新呢? apt-get 是否指向错误的仓库/来源?
最佳答案
内 shell :
$ mongod --version
https://stackoverflow.com/questions/19405791/