Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MongoDB: How to find the exact version of installed MongoDB

Tags:

mongodb

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 version: 3.2.0

But that's just the shell version, and I'm not sure whether it's the same as my real database version.

like image 398
Ville Miekk-oja Avatar asked Sep 25 '22 13:09

Ville Miekk-oja


People also ask

Which is the correct command to display the current version of MongoDB server?

db. version() — MongoDB Manual.

How do I know if MongoDB is installed on Linux?

MongoDB installs as a systemd service, which means that you can manage it using standard systemd commands alongside all other sytem services in Ubuntu. To verify the status of the service, type: sudo systemctl status mongodb.

What does mongod command do?

The main purpose of mongod is to manage all the MongoDB server tasks. For instance, accepting requests, responding to client, and memory management. mongo is a command line shell that can interact with the client (for example, system administrators and developers).


1 Answers

Just run your console and type:

db.version()

https://docs.mongodb.com/manual/reference/method/db.version/

like image 311
Punit Gupta Avatar answered Oct 19 '22 04:10

Punit Gupta