如何找到已安装的MongoDB的确切版本 [英] How to find the exact version of installed MongoDB

查看:701
本文介绍了如何找到已安装的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的确切版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆