mongodb - Error in mongo start -
i using mongo 3.0.2 version suddenly, have got problem in mongodb. till yesterday mongodb running fine. today when start mongo gives following error.
2015-04-29t10:57:47.732+0530 w network failed connect 127.0.0.1:27017, reason: errno:111 connection refused 2015-04-29t10:57:47.733+0530 e query error: couldn't connect server 127.0.0.1:27017 (127.0.0.1), connection attempt failed @ connect (src/mongo/shell/mongo.js:179:14) @ (connect):1:6 @ src/mongo/shell/mongo.js:179 exception: connect failed
i have checked on internet. deleted mongo lock file. didn't resolve problem yet.
when check service show waiting , after start doen't start as
service mongod status mongod stop/waiting sudo service mongod start mongod start/running, process 2520 service mongod status mongod stop/waiting
and solve out , explain why problem occur.
i had same issue , managed start mongod following steps
1) mkdir data
2) cd data
3) mongod -dbpath .
Comments
Post a Comment