search

Home  >  Q&A  >  body text

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

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

黄舟黄舟2852 days ago677

reply all(2)I'll reply

  • ringa_lee

    ringa_lee2017-04-21 11:19:48

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

    reply
    0
  • 怪我咯

    怪我咯2017-04-21 11:19:48

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

    reply
    0
  • Cancelreply