为mongo-connector设置mongodb

时间:2014-01-25 18:25:00

标签: mongodb

我是否为mongo-connector使用了正确的设置?我按照以下步骤进行了here

 PS C:\mongodb\bin> mongod --port 27017 --dbpath C:\data\db --replSet rs0

然后我开始C:\mongodb\bin\mongo.exe并输入rs.initiate()rs.conf()。如果我检查状态,我会收到两个错误:

rs0:PRIMARY> rs.status()
Sat Jan 25 19:19:47.788 Socket say send() errno:10053 An established connection
was aborted by the software in your host machine. 127.0.0.1:27017
Sat Jan 25 19:19:47.803 Error: socket exception [SEND_ERROR] for 127.0.0.1:27017
 at src/mongo/shell/query.js:78
Sat Jan 25 19:19:47.803 trying reconnect to 127.0.0.1:27017
Sat Jan 25 19:19:47.819 reconnect 127.0.0.1:27017 ok

0 个答案:

没有答案