在启动 mongodb数据库的时候提示二进制文件不能执行,那是因为系统版本和mongodb版本不对,我本机装的ubuntu是32位系统 mongodb是64位程序所以执行的时候提示出错。

root@MS:/home/caoyuan/mongodb/bin# ./mongod --dbpath=../caodb
bash: ./mongod: cannot execute binary file: Exec format error
系统版本查看命令:

root@MS:/home/caoyuan/zhouyi# getconf LONG_BIT
32