mongdb 上传图片:
[root@hy-mrz01 ~]# mongofiles put -u "pics" -p "jh7yxx" --host 127.0.0.1 --port 27017 --db pics 1.jpg --type jpg
connected to: 127.0.0.1:27017
added file: { _id: ObjectId('5742c361d2142d1f14b01c78'), filename: "1.jpg", chunkSize: 262144, uploadDate: new Date(1463993185630), md5: "07fe9712b466fdc879152ed5c20c8245", length: 95399,
contentType: "jpg" }
done!
[root@hy-mrz01 ~]# mongofiles -u "pics" -p "jh7xx" -h 127.0.0.1 list -db pics
connected to: 127.0.0.1
1.jpg 95399