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

浏览:41日期:2023-07-17

问题描述

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

问题解答

回答1:显示一下buildInfo就知道了

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

oldcai@ProBook:~$ mongoMongoDB shell version: 2.0.4connecting to: test> use adminswitched 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}>回答2:

uname -a 看看,如果你的ubuntu/debian是64bit的,那mongodb也就是64bit的。

相关文章: