使用mongostat监视mongodb

来源:互联网 发布:多人对战安卓游戏源码 编辑:程序博客网 时间:2024/05/17 07:05

1, 监视一个mongod 

mongostat 10.80.1.1:27018


1,监视replica set

mongostat --host rs0/10.80.1.1:27018,10.80.1.2:27018,10.80.1.3:27018 --username youruser --password yourpassword --authenticationDatabase admin


2,监视mongos

mongostat 10.80.1.1:27017


0 0
原创粉丝点击