First open CMD, and then reach the BIN directory of MongoDB. The screenshot of opening CMD prompt is as follows.
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 -
# Reach the BIN directory of MongoDB. Here's how to get to the BIN -
#Use query mongo --version. The query screenshot is as follows -
#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!