error
can not import file to mongodb
$ mongoimport --db test --collection restaurants --drop --file <filename>
2017-04-02T14:47:08.299+0800 [........................] test.restaurants 0B/11.3MB (0.0%)
2017-04-02T14:47:08.831+0800 [........................] test.restaurants 0B/11.3MB (0.0%)
2017-04-02T14:47:08.831+0800 Failed: error connecting to db server: no reachable servers
solution
mongoimport --host=127.0.0.1 --db test --collection restaurants --drop --file <filename>
ref
reflection
Since I'm new to mongodb and don't know much about it, I can just do as others say...It seems that host=127.0.0.1 specifies the owner's pc.