首页 > 怎样检测服务器上的mongodb是64位的?

怎样检测服务器上的mongodb是64位的?

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


显示一下buildInfo就知道了

"bits" : 64,Mongodb就是64位的。
我用的是命令行登录,没有这个权限也可以自己用程序连接了后类似办法解决。

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 看看,如果你的ubuntu/debian是64bit的,那mongodb也就是64bit的。

【热门文章】
【热门文章】