0
votes

I have tried all solutions mentioned in below 2 links Mongodb: Failed to connect to 127.0.0.1:27017, reason: errno:10061 How to start mongo db on windows

But still getting below error

`C:\Program Files (x86)\MongoDB\Server\3.2\bin>mongo MongoDB shell version: 3.2.18-15-g678cb63 connecting to: test 2018-01-26T16:39:23.926+0530 W NETWORK [thread1] Failed to connect to 127.0.0.1 :27017 after 5000ms milliseconds, giving up. 2018-01-26T16:39:23.927+0530 E QUERY [thread1] Error: couldn't connect to ser ver 127.0.0.1:27017, connection attempt failed : connect@src/mongo/shell/mongo.js:229:14 @(connect):1:6

exception: connect failed`

1
The question should have enough details in the question itself. Please add the config you are using and both commands you are executing to start mongod and to run mongo.Alex Blex
Hi Alex for mongod i an getting below log C:\Program Files (x86)\MongoDB\Server\3.2\bin>mongod 2018-01-26T16:39:14.713+0530 I CONTROL [main] 2018-01-26T16:39:14.714+0530 W CONTROL [main] 32-bit servers don't have journal ing enabled by default. Please use --journal if you want durability. 2018-01-26T16:39:14.727+0530 I CONTROL [initandlisten] git version: 678cb635ccb nvironment:e exp licitly, e.g. --storageEngine=mmapv1., terminating 2018-01-26T16:39:14.733+0530 I CONTROL [initandlisten] dbexit: rc: 100vickey99
doesn't it answer the question? you can't connect because the server didn't start. As a side note, please read stackoverflow.com/help/on-topic to increase your chances to get an answer.Alex Blex
Hi Alex,what should i do to solve this issue?vickey99
You can start with updating the question.Alex Blex

1 Answers

0
votes

Open onemore terminal as admin and run mongod. After this you can start your app in main terminal.