怎样检测服务器上的mongodb是64位的?
黄舟
黄舟 2017-04-21 11:17:48
0
2
623

如题。使用 apt-get install mongodb 安装的mongodb,但是不知道装的是什么版本。不知道在哪里查看?

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(2)
左手右手慢动作

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.

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
}
>
刘奇

uname -a Take a look, if your ubuntu/debian is 64bit, then mongodb is also 64bit.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template