Look"bits": 64, Mongodb is 64-bit.
I use the command line to log in. If you don't have this permission, you can also use a program to connect and solve the problem in a similar way.
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
}
>
Show the buildInfo and you will know
Look"bits": 64, Mongodb is 64-bit.
I use the command line to log in. If you don't have this permission, you can also use a program to connect and solve the problem in a similar way.
uname -a Take a look, if your ubuntu/debian is 64bit, then mongodb is also 64bit.