1. Log database
#mongo
2. Create a database or switch
>use kc_road
3. Create a collection
>use kc_road
>db.createCollection("Feng")
>show collections
4.GridFS Add File
#mongofiles -d kc_road put /data/back/kuancheng_road.0 import the data into the database name kc_road
#mongofiles -d kc_road list to view the imported file list
#use kc_road
$ Db.fs.files.find () to view the status of the import file