我在linode中有一个远程服务器,具有ubuntu清晰10.04 64位。
我从mongodb安装了mongodb:
如果我在控制台里写芒果,我就会得到:
MongoDB shell version: 2.0.3
connecting to: test
>我想知道我的数据库mongodb是否是64位。我不能使用32位mongodb数据库。我需要使用64位mongodb数据库。
我怎样或者在哪里检查它?
如果我的数据库mongodb不是64位,如何将mongodb 64位安装在ubuntu透明10.04 64位中?
谢谢!
发布于 2012-03-25 03:22:18
您可以使用buildInfo命令来了解您的服务器是什么构建。查找bits字段的值,以查看是否使用64位构建。
> use admin
switched to db admin
> db.runCommand("buildInfo")
{
"version" : "2.0.0",
"gitVersion" : "695c67dff0ffc361b8568a13366f027caa406222",
"sysInfo" : "Darwin erh2.10gen.cc 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 BOOST_LIB_VERSION=1_40",
"versionArray" : [
2,
0,
0,
0
],
"bits" : 64,
"debug" : false,
"maxBsonObjectSize" : 16777216,
"ok" : 1
}
> 发布于 2013-12-20 07:04:23
在2.4.6版中,如果服务器是32位的话,我的mongo客户端一连接到mongod就会显示以下内容。我甚至不需要运行命令。
** NOTE: This is a 32 bit MongoDB binary.
** 32 bit builds are limited to less than 2GB of data (or less with --journal).
** Note that journaling defaults to off for 32 bit and is currently off.
** See http://dochub.mongodb.org/core/32bithttps://stackoverflow.com/questions/9853577
复制相似问题