mongodb - Unable to connect specific mongo instance port -
today morning i'm able create 2 different mongo instances on port 27010 , 37010 , i'm able replicate using mongo-connector. after system restart i'm not able connect port 37010 using below command.
c:\program files\mongodb 2.6 standard\bin>mongo --port 37010 mongodb shell version: 2.6.12 connecting to: 127.0.0.1:37010/test 2016-09-12t18:08:14.733-0500 warning: failed connect 127.0.0.1:37010, reason: errno:10061 no connection made because target machine actively refused it. 2016-09-12t18:08:14.756-0500 error: couldn't connect server 127.0.0.1:37010 (127.0.0.1), connection attempt failed @ src/mongo/shell/mongo.js:148 exception: connect failed
it working fine if give mongo connecting default port of 27010. morning faced same problem deleted mongo windows service , running without mongo windows service. again i'm facing same problem. kindly advise.
below config files.
mongo.config.txt
##store data here dbpath=c:\program files\mongodb 2.6 standard\data ##all output go here logpath=c:\program files\mongodb 2.6 standard\log\mongo.log logappend=true #port number port=27017 ##log read , write operations diaglog=3 #replica set name replset=rs1 # run on localhost development bind_ip = 127.0.0.1
mongo2.config.txt
##store data here dbpath=c:\program files\mongodb 2.6 standard\data2 ##all output go here logpath=c:\program files\mongodb 2.6 standard\log2\mongo.log logappend=true #port number port=37017 ##log read , write operations diaglog=3 #replica set name replset=rs2 # run on localhost development bind_ip = 127.0.0.1
i got answer problem following steps mentioned in below blog.
http://zdk.github.io/create-a-three-member-mongodb-replica-set
somehow didn't work me configuration file. resolved problem executing commands in command line .
Comments
Post a Comment