I installed mongodb in Ubuntu14.04 server
I was not able to connect to mongodb via \"mongoimport\", \"mongodump\", \"mongostat\", etc. It always show \"no reachable
If you have installed mongodb through homebrew then you can simply start mongodb through
brew services start mongodb
Then access the shell by
mongo
You can shut down your db by
brew services stop mongodb
For more options
brew info mongodb