MongoDB:如何找到已安装 MongoDB 的确切版本 [英] MongoDB: How to find the exact version of installed MongoDB
本文介绍了MongoDB:如何找到已安装 MongoDB 的确切版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在本地为 Windows 7 安装了 mongoDB 3.2.我想知道它的具体版本(比如它是 3.2.1、3.2.3 还是...).我怎么能找到呢?如果我打开数据库外壳(mongo.exe),我可以看到它输出:
I have mongoDB 3.2 installed locally for Windows 7. I would like to find out its specific version (like is it 3.2.1, or 3.2.3 or...). How could I find it? If I open the database shell (mongo.exe), I can see it outputs:
MongoDB shell 版本:3.2.0
MongoDB shell version: 3.2.0
但这只是 shell 版本,我不确定它是否与我的真实数据库版本相同.
But that's just the shell version, and I'm not sure whether it's the same as my real database version.
推荐答案
只需运行您的控制台并输入:
Just run your console and type:
db.version()
https://docs.mongodb.com/manual/reference/method/db.version/
这篇关于MongoDB:如何找到已安装 MongoDB 的确切版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文