How do I detect that mongodb on the server is 64-bit?

  mongodb, question

As the topic is. Mongodb installed using apt-get install mongodb, but I don’t know what version is installed. I don’t know where to look.

Just show buildInfo

Look“bits” : 64,Mongodb is 64 bitsYes.
I use the command line to log in, without this permission, I can use a similar method to solve the problem after connecting with the program.

oldcai@ProBook:~$ mongo
MongoDB shell version: 2.0.4
connecting to: test
> use admin
switched to db admin
> db.runCommand("buildInfo")
{
	"version" : "2.0.4",
	"gitVersion" : "nogitversion",
	"sysInfo" : "Linux yellow 2.6.24-29-server #1 SMP Tue Oct 11 15:57:27 UTC 2011 x86_64 BOOST_LIB_VERSION=1_46_1",
	"versionArray" : [
		2,
		0,
		4,
		0
	],
	"bits" : 64,
	"debug" : false,
	"maxBsonObjectSize" : 16777216,
	"ok" : 1
}
>