这是一个创建于 3767 天前的主题,其中的信息可能已经有所发展或是发生改变。
是什么问题。
直接mongo会报错。
➜ ~ mongo
MongoDB shell version: 2.6.1
connecting to: test
2014-06-27T09:06:10.084+0800 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2014-06-27T09:06:10.085+0800 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
5 条回复 • 2014-09-03 16:54:06 +08:00
|
|
1
orzfly 2014-06-27 09:30:38 +08:00
因为你得启动 mongodb 服务器啊(摔
|
|
|
3
gkiwi 2014-06-27 09:52:18 +08:00
|
|
|
4
southwolf 2014-06-27 10:13:42 +08:00
mongod 是server, mongo是client
|
|
|
5
laoisaudi 2014-09-03 16:54:06 +08:00
今天遇到。。弄了很久。。最后看到这里发现傻了。。
|