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

CARRIERWAVE - UPLOAD ANY MEDIA (AUDIO , VIDEO AND IMAGE ) FILE IN RAILS

SELECT COUNTRY WITH STATE AND IT'S CITIES RAILS

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

RAILS: UPLOADING PHOTOS VIA AMAZON S3 AND PAPERCLIP (UPLOADING FILES TO S3 IN RUBY WITH PAPERCLIP)

UNINITIALIZED CONSTANT PAPERCLIP::STORAGE::S3::AWS

HOW TO CALL RAILS API FROM SIMPLE HTML PAGE.

DEPLOYING PROJECT USING CAPISTRANO (CAPISTRANO IN RAILS)