mongorestore Failed: no reachable servers

后端 未结 12 1799
天涯浪人
天涯浪人 2020-12-15 03:06

I tried to restore mongo from dump but failed:

mongorestore --port 27133 dump
2015-05-07T09:39:11.760+0300    Failed: no reachable servers

12条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-15 03:41

    If you're using a hosted service (like MongoDB Atlas), make sure you've set up the IP white-list so that it isn't blocking your IP address. You can set it to 0.0.0.0/0 to whitelist all IP addresses, but this is a bad idea in terms of security so it should only be used as a temporary measure.

提交回复
热议问题