使用示例:

mongoexport -h shop-test.xxx.cn:10250 -d pad-ddd -c j_device -o D:/jd_device_advertisement_statistics.json -u shop-test -p 222222 --ssl

参数详解:

mongoexport -h xxx.cn:10000   #主机:端口

-d pad-xzxx  # 数据库名称

-c user_test   #集合名称

-o D:/user_test.json #输入到本地的路径

-u vsalw  #数据库用户名

-p xxxxxxxxxxxxx  #数据库用户名密码

--ssl  #使用SSL(可选)