mongo指令

use admin

db.runCommand({logRotate:1})

show dbs;

db.currentOp();

db.serverStatus().connections

db.killOp(26593769);

 

use adbname

db.tblname.ensureIndex({"sendtime":1})

db.tblname.getIndex()

 

posted @ 2018-02-07 18:29  Spring shine  阅读(105)  评论(0编辑  收藏  举报