红联Linux门户
Linux帮助

-bash:./mongod:cannot execute binary file:Exec format error

发布时间:2016-08-21 22:34:49来源:linux网站作者:IT-渊说
在启动 mongodb数据库的时候提示二进制文件不能执行,那是因为系统版本和mongodb版本不对,我本机装的ubuntu是32位系统 mongodb是64位程序所以执行的时候提示出错。
-bash:./mongod:cannot execute binary file:Exec format error
 
root@MS:/home/caoyuan/mongodb/bin# ./mongod --dbpath=../caodb
bash: ./mongod: cannot execute binary file: Exec format error
 
系统版本查看命令:
-bash:./mongod:cannot execute binary file:Exec format error
 
root@MS:/home/caoyuan/zhouyi# getconf LONG_BIT
32
 
本文永久更新地址:http://www.linuxdiyf.com/linux/23505.html