客户端使用redis-cli连接redis集群?相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。具体内容如下:redis-cli -c -h 127.0.0.1 -p 7001127.0.0.1:7001> info# Serverredis_version:4.0.1redis_git_sha1:00000000redis_git_dirty:0redis_build_id:c2421362bb182556redis_mode:clusteros:Linux 4.8.0-36-generic x86_64arch_bits:64multiplexing_api:epollatomicvar_api:atomic-builtingcc_version:5.4.0process_id:2281run_id:52d913baa483a08bb2b9aab5d16722a4dad7682ctcp_port:7001uptime_in_seconds:105uptime_in_days:0hz:10lru_clock:9441446executable:/home/sa/Downloads/redis-4.0.1/src/redis-serverconfig_file:/home/sa/Downloads/redis-cluster/7001/redis.conf# Clientsconnected_clients:1client_longest_output_list:0client_biggest_input_buf:0blocked_clients:0# Memoryused_memory:2621712used_memory_human:2.50Mused_memory_rss:13803520used_memory_rss_human:13.16Mused_memory_peak:2622736used_memory_peak_human:2.50Mused_memory_peak_perc:99.96%used_memory_overhead:2552496used_memory_startup:1437432used_memory_dataset:69216used_memory_dataset_perc:5.84%total_system_memory:2077257728total_system_memory_human:1.93Gused_memory_lua:37888used_memory_lua_human:37.00Kmaxmemory:0maxmemory_human:0Bmaxmemory_policy:noevictionmem_fragmentation_ratio:5.26mem_allocator:jemalloc-4.0.3active_defrag_running:0lazyfree_pending_objects:0# Persistenceloading:0rdb_changes_since_last_save:0rdb_bgsave_in_progress:0rdb_last_save_time:1502613566rdb_last_bgsave_status:okrdb_last_bgsave_time_sec:0rdb_current_bgsave_time_sec:-1rdb_last_cow_size:6537216aof_enabled:1aof_rewrite_in_progress:0aof_rewrite_scheduled:0aof_last_rewrite_time_sec:-1aof_current_rewrite_time_sec:-1aof_last_bgrewrite_status:okaof_last_write_status:okaof_last_cow_size:0aof_current_s免费云主机域名ize:0aof_base_size:0aof_pending_rewrite:0aof_buffer_length:0aof_rewrite_buffer_length:0aof_pending_bio_fsync:0aof_delayed_fsync:0# Statstotal_connections_received:3total_commands_processed:113instantaneous_ops_per_sec:1total_net_input_bytes:3880total_net_output_bytes:15076instantaneous_input_kbps:0.04instantaneous_output_kbps:0.00rejected_connections:0sync_full:1sync_partial_ok:0sync_partial_err:1expired_keys:0evicted_keys:0keyspace_hits:0keyspace_misses:0pubsub_channels:0pubsub_patterns:0latest_fork_usec:1563migrate_cached_sockets:0slave_expires_tracked_keys:0active_defrag_hits:0active_defrag_misses:0active_defrag_key_hits:0active_defrag_key_misses:0# Replicationrole:masterconnected_slaves:1slave0:ip=127.0.0.1,port=7004,state=online,offset=140,lag=0master_replid:6159bfd6d6502db45adaafd137b094028e532e03master_replid2:0000000000000000000000000000000000000000master_repl_offset:140second_repl_offset:-1repl_backlog_active:1repl_backlog_size:1048576repl_backlog_first_byte_offset:1repl_backlog_histlen:140# CPUused_cpu_sys:0.21used_cpu_user:0.12used_cpu_sys_children:0.00used_cpu_user_children:0.00# Clustercluster_enabled:1# Keyspace127.0.0.1:7001> root@ubuntu:/home/sa/Downloads/redis-4.0.1/src#看完上述内容,你们掌握客户端使用redis-cli连接redis集群的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注百云行业资讯频道,感谢各位的阅读!
ORA-00257: archiver error. Connect internal only, until freed.Cause: The 免费云主机域名archiver process received an error while trying to…
免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。