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

前端 未结 12 2024
失恋的感觉
失恋的感觉 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:38

    You need to provide host option try the following command :

    mongoimport --host=127.0.0.1 -d dbName -c collectionName --file output.txt
    

提交回复
热议问题