我已经下载了 mongodb-linux-2.4.1 压缩包。然后我解压它。转到 mongodb-linux-2.4.1/bin 文件夹并启动它
./mongo
然后我得到:
li@li-HP:~/Tools/mongodb-linux-x86_64-2.4.1/bin$ ./mongo
MongoDB shell version: 2.4.1
connecting to: test
Fri Mar 29 19:29:47.958 JavaScript execution failed: Error: couldn't connect to
server 127.0.0.1:27017 at src/mongo/shell/mongo.js:L112
exception: connect failed
有什么建议吗?
最佳答案
./mongo
只需运行 mongodb 客户端./mongod
运行 mongodb 服务器
关于mongodb - 无法在 Ubuntu 12.04 上启动 mongodb-linux-2.4.1,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15714341/