【发布时间】:2015-11-09 10:23:08
【问题描述】:
我在 Ubuntu 服务器上成功运行了 MongoDB 以及我的 nodeJS 应用程序。但是由于某种原因,当我使用 forever start /path/to/mongod 启动它时,我的 mongodb-log 中出现以下错误:
/mongodb/mongodb-linux-x86_64-3.0.5/bin/mongod:1
(function (exports, require, module, __filename, __dirname) { ^?ELF^B^A^A^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:902:3
error: Forever detected script exited with code: 8
我删除了 mongodb 目录并重新安装它,但我仍然得到同样的错误。
感谢您的帮助
【问题讨论】: