Normally this caused because you didn’t start mongod process before you try starting mongo shell.
Start mongod server
mongod
Open another terminal window
Start mongo shell
mongo
More Related Contents:
- Can you specify a key for $addToSet in Mongo?
- Performing regex queries with PyMongo
- Create an ISODate with pyMongo
- MongoDB – Querying between a time range of hours
- Remove multiple documents from mongo in a single query
- Find objects between two dates MongoDB
- How to remove a field completely from a MongoDB document?
- How to Model a “likes” voting system with MongoDB
- Understanding MongoDB BSON Document size limit
- How can I run MongoDB as a Windows service?
- Overflow sort stage buffered data usage exceeds internal limit
- Slow pagination over tons of records in mongodb
- MongoDB – paging
- MongoDB password with “@” in it
- MongoDB: How to query for records where field is null or not set?
- exclude fields in $lookup aggregation
- Mongo how to $lookup with DBRef
- Add some kind of row number to a mongodb aggregate command / pipeline
- How do you query for “is not null” in Mongo?
- MongoDB: exception in initAndListen: 20 Attempted to create a lock file on a read-only directory: /data/db, terminating
- MongoDB ‘unable to find index for $geoNear query’
- MongoDB sort documents by array elements
- MongoDB won’t start after server crash
- How does sorting with an index work in MongoDB?
- How to get multiple document using array of MongoDb id?
- Docker: change folder where to store docker volumes
- How to organise a many to many relationship in MongoDB
- How to check if an array field contains a unique value or another array in MongoDB?
- MongoDB Single Document size limit is 16MB
- mongodb aggregate query isn’t returning proper sum on using $sum