1 개요[ | ]
- Redis INFO
- redis-cli info
- 정보를 조회하는 레디스 명령어
- 조회내용: 서버, 클라이언트, 메모리, 퍼시스턴스, 상태, 리플리케이션, CPU, 클러스터, 키스페이스
2 실행예시[ | ]
Console
Copy
root@zetawiki:~# redis-cli -h 135.79.246.80 -p 13759 -a 'P@ssw0rd' info | grep ^#
# Server
# Clients
# Memory
# Persistence
# Stats
# Replication
# CPU
# Cluster
# Keyspace
Console
Copy
root@zetawiki:~# redis-cli -h 135.79.246.80 -p 13759 -a 'P@ssw0rd'
135.79.246.80:13759> info
# Server
redis_version:3.0.3
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:0000000000000000000000000000000000000000
redis_mode:standalone
os:Linux 3.2.0-48 virtual x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.6.3
process_id:7941704
run_id:85a5d496583b9a26d5b2c988ff3ad1c666b3b590
tcp_port:13759
uptime_in_seconds:364586
uptime_in_days:4
hz:10
lru_clock:0
config_file:
# Clients
connected_clients:1
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
# Memory
used_memory:3178856
used_memory_human:3.3M
used_memory_rss:3178856
used_memory_peak:3273384
used_memory_peak_human:3.12M
used_memory_lua:36864
mem_fragmentation_ratio:1
mem_allocator:jemalloc-3.2.0
# Persistence
loading:0
rdb_changes_since_last_save:1
rdb_bgsave_in_progress:0
rdb_last_save_time:1467252315
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:0
rdb_current_bgsave_time_sec:-1
aof_enabled:0
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
# Stats
total_connections_received:19
total_commands_processed:36
instantaneous_ops_per_sec:1
total_net_input_bytes:28988587
total_net_output_bytes:272148288
instantaneous_input_kbps:0.08
instantaneous_output_kbps:0.73
rejected_connections:0
sync_full:0
sync_partial_ok:0
sync_partial_err:0
expired_keys:0
evicted_keys:0
keyspace_hits:3
keyspace_misses:1
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:0
migrate_cached_sockets:0
# Replication
role:master
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.00
used_cpu_user:0.00
used_cpu_sys_children:0.00
used_cpu_user_children:0.00
# Cluster
cluster_enabled:0
# Keyspace
db0:keys=1,expires=0,avg_ttl=0
3 같이 보기[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.