Tuesday, 15 January 2013

database - Created mongod replication Set but fail to connect -



database - Created mongod replication Set but fail to connect -

i have created mongodb replication set using command:

f:\data>mongod --replset set1 --dbpath 1 --port 27101 --oplogsize 50 --logpath log.1 --logappend --fork

it not recognize --fork , not there in --help (i guess) have excluded , got next output. think there nil wrong far.

all output going to: log.1

then when seek utilize mongo console using command

f:\data>mongo --port 27101

it returns

mongodb shell version: 2.2.2 connecting to: 127.0.0.1:27101/test thu feb 14 01:36:33 error: couldn't connect server 127.0.0.1:27101 src/mongo/ shell/mongo.js:93 exception: connect failed

now can done create work?

actually in parameter had info path --dbpath 1 need have directory named '1' in current directory had created in data directory misunderstanding.

thankyou @alptigin jalayr , others has lead me right direction.

database shell mongodb replication

No comments:

Post a Comment