COULDN'T CONNECT TO SERVER 127.0.0.1:27017 (START MONGO DB)

COULDN'T CONNECT TO SERVER 127.0.0.1:27017

START MONGO DB SERVER

sudo rm /var/lib/mongodb/mongod.lock
mongod --repair
sudo service mongod start

OR WE CAN USE

sudo rm /var/lib/mongodb/mongod.lock
sudo mongod --repair --dbpath /var/lib/mongodb
sudo mongod --fork --logpath /var/lib/mongodb/mongodb.log --dbpath /var/lib/mongodb
sudo service mongodb start


http://stackoverflow.com/questions/12831939/couldnt-connect-to-server-127-0-0-127017

WHEN WE UNABLE TO START MONGO DB THEN WE CAN FOLLOW

https://stackoverflow.com/questions/9757925/upgrade-mongodb

Popular posts from this blog

UPLOAD ANY MEDIA FILE WITH CARRIER-WAVE RAILS

CREATE API FOR USER SIGN UP, LOGIN AND CREATE PUBLISHER WITH CURRENT USER

SELECT COUNTRY WITH STATE AND IT'S CITIES RAILS