我已经下载了mongodb-linux-2.4.1 tarball。然后我解开它。转到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
有什么建议吗?
答案 0 :(得分:1)
./mongo
只需运行mongodb客户端
./mongod
运行mongodb服务器