Redis的info命令详解

# Server
redis_version:3.2.3  //Redis的版本号
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:a63c5ae1f392752f
redis_mode:standalone
os:Linux 2.6.32-504.el6.x86_64 x86_64 //Linux版本

arch_bits:64
multiplexing_api:epoll
gcc_version:4.4.7  //GCC版本
process_id:2887 //进程PID
run_id:25cd76dc43a390790d6e5aa541384b0ad5139917 //Redis运行ID
tcp_port:6379 //端口
uptime_in_seconds:24 //Redis运行时长,单位秒
uptime_in_days:0 //Redis运行时长,单位天
hz:10
lru_clock:13460080
executable:/data/redis-3.2.3/src/./redis-server
config_file:/data/redis-3.2.3/6379.conf //配置文件路径

# Clients
connected_clients:1 //链接的客户端数量
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

# Memory
used_memory:821616
used_memory_human:802.36K
used_memory_rss:7794688
used_memory_rss_human:7.43M
used_memory_peak:821616
used_memory_peak_human:802.36K
total_system_memory:1028452352
total_system_memory_human:980.81M
used_memory_lua:37888
used_memory_lua_human:37.00K
maxmemory:0
maxmemory_human:0B
maxmemory_policy:noeviction
mem_fragmentation_ratio:9.49
mem_allocator:jemalloc-4.0.3

# Persistence
loading:0
rdb_changes_since_last_save:4
rdb_bgsave_in_progress:0
rdb_last_save_time:1473077848
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
aof_enabled:1
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:-1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok
aof_current_size:313
aof_base_size:313
aof_pending_rewrite:0
aof_buffer_length:0
aof_rewrite_buffer_length:0
aof_pending_bio_fsync:0
aof_delayed_fsync:0

# Stats
total_connections_received:25
total_commands_processed:121
instantaneous_ops_per_sec:3
total_net_input_bytes:1783
total_net_output_bytes:5877313
instantaneous_input_kbps:0.04
instantaneous_output_kbps:0.07
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
evicted_keys:0
keyspace_hits:0
keyspace_misses:0
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
migrate_cached_sockets:0

# Replication
role:slave
master_host:127.0.0.1
master_port:6379
master_link_status:down
master_last_io_seconds_ago:-1
master_sync_in_progress:0
slave_repl_offset:1
master_link_down_since_seconds:1473077872
slave_priority:100
slave_read_only:1
connected_slaves:0
master_repl_offset:0
repl_backlog_active:0
repl_backlog_size:1048576
repl_backlog_first_byte_offset:0
repl_backlog_histlen:0

# CPU
used_cpu_sys:0.07
used_cpu_user:0.02
used_cpu_sys_children:0.00
used_cpu_user_children:0.00

# Cluster
cluster_enabled:0

# Keyspace
db0:keys=4,expires=0,avg_ttl=0

发表评论

电子邮件地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>