I am working on Ubuntu OS 16.04. I am starting mongodb using commands::
sudo service mongod start
and then
mongo
It generated this error for m
For windows,
1)Right click on the task bar and select Task Manager.
2)Select server at the given menu
3)Search mongoDB and select that and right click (click open services).
4)Search mongoDB Server, select that and click "start" at the left side window
Now it's ready to go
This worked for me (MAC):
Step 1 : Check the status if MongoDB is running or not
brew services list | grep mongo
Step 2 : if you get something like :
Name Status User Plist
mongodb stopped
Step 3: : start the service:
brew services start mongodb
else :
if you get like this after step 2:
Name Status User Plist
mongodb started u1 /Users/u1/Library/LaunchAgents/homebrew.mxcl.mongodb.plist
then it is already running then you can restart your service by
brew services restart mongodb