jedis 获取 redis info 信息
所属分类 redis
浏览量 1164
https://redis.io/commands/info
server: General information about the Redis server
clients: Client connections section
memory: Memory consumption related information
persistence: RDB and AOF related information
stats: General statistics
replication: Master/replica replication information
cpu: CPU consumption statistics
commandstats: Redis command statistics
cluster: Redis Cluster section
modules: Modules section
keyspace: Database related statistics
使用 redis-cli 获取
./redis-cli
info
jedis 中获取 info 信息
Client client = RedisUtil.getJedis().getClient();
client.info();
String info = client.getBulkReply();
System.out.println(info);
-------
Jedis jedis = new Jedis(host,port);
String info jedis.info()
完整代码
https://gitee.com/dyyx/redisdemo/blob/master/src/main/java/dyyx/InfoTest.java
上一篇
下一篇
springboot 读取中文配置乱码
jmx_prometheus_javaagent 使用
jmx_exporter JmxCollector 源码要点
Redis内部存储结构
kafka-topics.sh 无法获取topic列表及topic信息
kafka之broker-list bootstrap-server 和 zookeeper