当前位置:Gxlcms > 数据库问题 > 使用mongostat监视mongodb

使用mongostat监视mongodb

时间:2021-07-01 10:21:17 帮助过:20人阅读

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


使用mongostat监视mongodb

标签:mongostat   replica set   sharded cluster   mongodb   

人气教程排行