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

Comments

Popular posts from this blog

psql: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

E: Package 'aptitude' has no installation candidate

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

SEARCHING USING AJAX IN RAILS

SELECT COUNTRY WITH STATE AND IT'S CITIES RAILS

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

CHECK PASSENGER RUBY PATH

CURL COMMAND ON RUBY ON RAILS

SHOW LINE NUMBER OF TEXT AREA