无法在Ubuntu 12.04上启动mongodb-linux-2.4.1

时间:2013-03-30 02:40:36

标签: mongodb ubuntu database

我已经下载了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

有什么建议吗?

1 个答案:

答案 0 :(得分:1)

./mongo只需运行mongodb客户端 ./mongod运行mongodb服务器