Retest Miscellaneous

mongodb ---- API operations:

MongoClient mo = new MongoClient("127.0.0.1",27017);

DB db = mo.getDB("wtdd");

DBCollection col = db.getCollection( "wtd" );
 
DBCursor dbs = col.find(null,a).limit(3).skip(3);
mongodb Installation: compressed, and ClassPath path Path setting, the setting data storage folder address data, turn on the server, the configuration file
Configuration information
httpinterface = true
auth = false
dbpath = e:/MongoDB/data

Start the server: mongod --config e: /MongoDB/conf/mongodb.conf

Log server mongo
                 // ADMIN --username "root" --password "root"

 

 

Guess you like

Origin www.cnblogs.com/0123wtdd/p/12527455.html