Home>Article>Database> How do I know which MongoDB version is installed using the command line?

How do I know which MongoDB version is installed using the command line?

王林
王林 forward
2023-09-15 13:49:09 727browse

First open CMD, and then reach the BIN directory of MongoDB. The screenshot of opening CMD prompt is as follows.

我如何知道使用命令行安装了哪个 MongoDB 版本?

Above, we entered the Run dialog box by pressing "Start" and then typing "RUN" and "ENTER".

Now, type CMD and press OK button to get the command line. The screenshot is as follows -

我如何知道使用命令行安装了哪个 MongoDB 版本?

# Reach the BIN directory of MongoDB. Here's how to get to the BIN -

我如何知道使用命令行安装了哪个 MongoDB 版本?

#Use query mongo --version. The query screenshot is as follows -

我如何知道使用命令行安装了哪个 MongoDB 版本?

#It shows that our current MongoDB version is v4.0.5.

The above is the detailed content of How do I know which MongoDB version is installed using the command line?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete