十九、Redis 服务器
Redis 服务器命令主要是用于管理 redis 服务
范例
以下范例演示了如何获取 redis 服务器的统计信息
$ redis-clililili
127、0.0.1:6379> info
# Server
redis_version:3.0.7
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:aa27a151289c9b98
redis_mode:standalone
os:Darwin 17.2.0 x86_64
arch_bits:64
multiplexing_api:kqueue
gcc_version:4.2.1
process_id:702
run_id:63a232c39b249561664fb3a427a95f1bfe33e33e
tcp_port:6379
uptime_in_seconds:611995
uptime_in_days:7
hz:10
lru_clock:15307220
config_file:/usr/local/etc/redis.conf
# Clients
connected_clients:1
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
# Memory
used_memory:1009664
used_memory_human:986.00K
used_memory_rss:602112
used_memory_peak:1009664
used_memory_peak_human:986.00K
used_memory_lua:36864
mem_fragmentation_ratio:0.60
mem_allocator:libc
# Persistence
loading:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1507867449
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewriteaaa
评论区