mongodb Failed: error connecting to db server: no reachable servers

前端 未结 12 2029
失恋的感觉
失恋的感觉 2020-12-13 11:59

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

12条回答
  •  一生所求
    2020-12-13 12:52

    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
    

提交回复
热议问题