.window+x,A,管理员进入cmd
.cd C:\Program Files\MongoDB\Server\3.4\bin
.安装:mongod --dbpath "D:\work\DB\mongodb\db" --logpath "D:\work\DB\mongodb\log\MongoDB.log" --install --serviceName "MongoDB"
.启动mongodb服务> d:\mongodb\bin>NET START MongoDB
.卸载:mongod.exe --remove --serviceName "MongoDB"


.mongod命令
>mongo
>use YQTrackV5_Cache06
>db.YQTrackV5_Cache06Collection.createIndex({ "ft" : 1, "c1" : 1, "c2" : 1, "w1" : 1, "w2" : 1 })
>db.YQTrackV5_Cache06Collection.ensureIndex({ "ft" : 1, "c1" : 1, "c2" : 1, "w1" : 1, "w2" : 1 })
>db["YQTrackV5_Cache06Collection"].count();
>db.YQTrackV5_Cache06Collection.count({"c1":NumberLong("1002"),"c2":NumberLong("301")});