首页 > 解决方案 > 在 Linux 服务器上运行 mongodb 时出错

问题描述

我正在尝试运行命令:

mongod --storageEngine wiredTiger --dbpath data --logpath logs/mongo.log

在linux服务器中,但它给了我错误

cannot execute binary file: Exec format error

当我尝试查看文件 mongod 的依赖关系时,readelf -d它给出了太多错误:

readelf: Warning: The e_shentsize field in the ELF header is larger than the size of an ELF section header
readelf: Error: Reading 0x9c00000 bytes extends past end of file for section headers

我没有找到有关此错误的任何信息

标签: linuxmongodb

解决方案


问题出在我在 64 位 linux 服务器中使用 mongodb 32 位的 linux 版本上


推荐阅读