日本综合一区二区|亚洲中文天堂综合|日韩欧美自拍一区|男女精品天堂一区|欧美自拍第6页亚洲成人精品一区|亚洲黄色天堂一区二区成人|超碰91偷拍第一页|日韩av夜夜嗨中文字幕|久久蜜综合视频官网|精美人妻一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
redis查詢配置命令的方法是什么

Redis查詢配置命令的方法如下:

創(chuàng)新互聯(lián)公司是一家專注于做網(wǎng)站、成都做網(wǎng)站與策劃設(shè)計,晉安網(wǎng)站建設(shè)哪家好?創(chuàng)新互聯(lián)公司做網(wǎng)站,專注于網(wǎng)站建設(shè)10多年,網(wǎng)設(shè)計領(lǐng)域的專業(yè)建站公司;建站業(yè)務(wù)涵蓋:晉安等地區(qū)。晉安做網(wǎng)站價格咨詢:18982081108

1. 使用CONFIG GET命令查詢單個配置項

通過CONFIG GET命令可以查詢Redis的單個配置項,要查詢maxmemory配置項,可以使用以下命令:

CONFIG GET maxmemory

返回結(jié)果示例:

1) "maxmemory"
2) "0"

2. 使用CONFIG GET命令查詢多個配置項

通過CONFIG GET命令可以一次性查詢多個配置項,要查詢maxmemorymaxmemorypolicy配置項,可以使用以下命令:

CONFIG GET maxmemory maxmemorypolicy

返回結(jié)果示例:

1) "maxmemory"
2) "0"
3) "maxmemorypolicy"
4) "noeviction"

3. 使用CONFIG SET命令修改配置項

通過CONFIG SET命令可以修改Redis的配置項,要將maxmemory配置項設(shè)置為100mb,可以使用以下命令:

CONFIG SET maxmemory 100mb

4. 使用CONFIG REWRITE命令重寫配置文件

通過CONFIG REWRITE命令可以將當前內(nèi)存中的配置信息同步到磁盤上的配置文件中,要將內(nèi)存中的配置信息同步到磁盤上的redis.conf文件,可以使用以下命令:

CONFIG REWRITE /path/to/redis.conf

5. 使用CONFIG DUMP命令導(dǎo)出所有配置項

通過CONFIG DUMP命令可以導(dǎo)出Redis的所有配置項,要將所有配置項導(dǎo)出到一個名為config.txt的文件中,可以使用以下命令:

CONFIG DUMP /path/to/config.txt

6. 使用CONFIG DEBUG命令獲取調(diào)試信息

通過CONFIG DEBUG命令可以獲取Redis的調(diào)試信息,要獲取Redis的調(diào)試信息,可以使用以下命令:

CONFIG DEBUG

返回結(jié)果示例:

Server
redis_version:5.0.5
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:7eae8c9b3bcca0f4
redis_mode:standalone
os:Linux 3.10.0862.el7.x86_64 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.8.5
process_id:1
run_id:a7e2d7b8c9e89a4e9e8e8e8e8e8e8e8e8e8e8e8e
tcp_port:6379
uptime_in_seconds:123456
lru_clock:123456
Clients
connected_clients:123456
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0
Memory
used_memory:123456789
used_memory_human:123.45M
used_memory_rss:123456789
used_memory_rss_human:123.45M
used_memory_peak:123456789
used_memory_peak_human:123.45M
total_system_memory:1234567890
total_system_memory_human:123.45G
used_memory_lua:32768
mem_fragmentation_ratio:1.23
mem_allocator:jemalloc5.1.0
Persistence
loading:0
rdb_changes_since_last_save:123456
rdb_bgsave_in_progress:0
rdb_last_saved_time:1234567890
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:1234567890
rdb_current_bgsave_time_sec:1
aof_enabled:1
aof_last_write_status:ok
aof_last_write_time_sec:1234567890
aof_buffer_length:1234567890
aof_buffer_length_human:123.45M
aof_current_size:1234567890
aof_current_size_human:123.45M
aof_base_size:1234567890
aof_base_size_human:123.45M
aof_pending_rewrite:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:1234567890
aof_rewrite_time_sec:1
stop_writes_on_bgsave_or_rewrite:yes
auto_aof_rewrite_percentage:100
auto_aof_rewrite_min_size:1234567890
aof_rewrite_incremental_fsync:yes
Stats
total_connections_received:1234567890
total_commands_processed:1234567890
instantaneous_ops_per_sec:1234567890
total_net_input_bytes:1234567890
total_net_output_bytes:1234567890
instantaneous_input_kbps:1234567890
instantaneous_output_kbps:12344567890
rejected_connections:1234567890
sync_full:1234567890
sync_partial_ok:1234567890
sync_partial_err:1234567890
expired_keys:1234567890
expired_stale_perc:1234567890
expired_time_cap_reached_count:1234567890
keyspace_hits:1234567890
keyspace_misses:1234567890
pubsub_channels:1234567890
pubsub_patterns:1234567890
latest_fork_usecs:1234567890
migrate_cached_sockets:1234567890
slave_expires_tracked_keys:1234567890
activerehashing:1234567890
master_replid:1234567890
master_replid2:1234567890
master_repl_offset:1234567890
second_repl_offset:1234567890
repl_backlog_active:1234567890
repl_backlog_size:1234567890
repl_backlog_first_byte_offset:1234567890
repl_backlog_histlen:1234567890
slave_priority:1234567890
slave_read_only:1234567890
connected_slaves:1234567890
master_host:127.0.0.1
master_port:1234567890

網(wǎng)頁標題:redis查詢配置命令的方法是什么
標題URL:http://www.dlmjj.cn/article/coocohh.html