官网原址:https://redis.io/commands/info
命令:info
该命令仅展示当前节点的信息,而不是集群汇总信息
Server(服务的系统配置)
属性名 |
属性值 |
说明 |
redis_version |
5.0.8 |
Redis版本号 |
redis_git_sha1 |
00000000 |
GIT SHA1 |
redis_git_dirty |
0 |
Git dirty flag |
redis_build_id |
cadca3f2c5e718a5 |
Redis 构建生成的唯一码 |
redis_mode |
cluster |
Redis 的模式,Cluster=集群,standalone=单机,sentinel=哨兵 |
os |
Linux 3.10.0-1160.11.1.el7.x86_64 x86_64 |
运行服务器的系统版本号 |
arch_bits |
64 |
系统位数,32位或64位 |
multiplexing_api |
epoll |
事件循环机制API,epoll详解 |
atomicvar_api |
atomic-builtin |
原子处理API |
gcc_version |
4.8.5 |
系统G++版本 |
process_id |
28323 |
当前服务的进程ID |
run_id |
958eea0fb01abc1ad5206b8635c79ec9aaa30713 |
在哨兵、集群模式中用于标识当前Redis服务器的唯一值 |
tcp_port |
xxxx |
端口号 |
uptime_in_seconds |
6121837 |
服务器运行时长,秒级 |
uptime_in_days |
70 |
服务器运行时长,天级 |
hz |
10 |
Redis的频率设置,值越大CPU消耗越高,对应的过期key等清理也会更及时 |
configured_hz |
10 |
配置中的频率设置 |
lru_clock |
14404771 |
每分钟递增一次,用于LRU管理(最少使用算法) |
executable |
/usr/local/redis-5.0.8/bin/redis-server |
服务器的执行路径 |
config_file |
/data/redisdb/conf/redis.conf |
服务器的配置目录 |
Client(连接)
属性名 |
属性值 |
说明 |
connected_clients |
533 |
当前连接数(不包含副本的连接数) |
client_recent_max_input_buffer |
4 |
最近最大输入流 |
client_recent_max_output_buffer |
0 |
最近最大输出流 |
blocked_clients |
0 |
被阻塞的链接,正常情况都是0,出现阻塞就需要查看阻塞原因了 |
Memory(内存)