建库语句及用户创建语句:
mongo --port 32017
use admin;
db.auth("admin","xxxxxx");
use vems_couponactivity;
db.createCollection("t_book", { capped : false } );
db.createUser({user:"vemssms",pwd:"xxxxxxx",roles:["readWrite","dbAdmin"]});
监控mongo热点collection
mongotop --port 27017 --username='admin' --password='xxxxxx' --authenticationDatabase=admin
监控mongo各类操作频次
mongostat --port 27017 --username='admin' --password='xxxxxxx' --authenticationDatabase=admin