sql >> Database >  >> NoSQL >> MongoDB

Kan geen verbinding maken met server 127.0.0.1:27017

Step 1: Remove lock file.
sudo rm /var/lib/mongodb/mongod.lock

Step 2: Repair mongodb. 
sudo mongod --repair 

Step 3: start mongodb.
sudo start mongodb 
or
sudo service mongodb start

Step 4: Check status of mongodb.
sudo status mongodb 
or   
sudo service mongodb status

Step 5: Start mongo console.
mongo 


  1. MongoDB $not Aggregation Pipeline Operator

  2. Ingesloten documenteigenschap bijwerken in Mongodb

  3. sorteer op stringlengte in Mongodb/pymongo

  4. MongoDB $split