手机版
你好,游客 登录 注册 搜索
背景:
阅读新闻

查看远程Redis服务器的版本

[日期:2015-06-06] 来源:CSDN  作者:chszs [字体: ]

何查看远程Redis服务器的版本

如果无远程Redis服务器的SSH访问权限,又想知道Redis服务器是哪个版本,该怎么办?

很简单,在本地安装一个Redis,利用Redis客户端命令查看:

# ./src/redis-cli -h 192.168.1.3 info | grep 'redis_version'

redis_version:2.8.8

还可以看完整的信息:

 

# ./src/redis-cli -h 192.168.1.3 info
# Server
redis_version:2.8.8
redis_git_sha1:00000000
redis_git_dirty:0
redis_build_id:43fea591cc6ce090
redis_mode:standalone
os:Linux 2.6.18-308.el5 x86_64
arch_bits:64
multiplexing_api:epoll
gcc_version:4.1.2
process_id:8719
run_id:f69135bba0fd50a55cfeaca56788e963d1a33a38
tcp_port:6379
uptime_in_seconds:14582183
uptime_in_days:168
hz:10
lru_clock:7432791
config_file:/opt/redis/conf/redis.conf

# Clients
connected_clients:198
client_longest_output_list:0
client_biggest_input_buf:0
blocked_clients:0

# Memory
used_memory:305139776
used_memory_human:291.00M
used_memory_rss:335597568
used_memory_peak:345944184
used_memory_peak_human:329.92M
used_memory_lua:29696
mem_fragmentation_ratio:1.10
mem_allocator:jemalloc-3.2.0

# Persistence
loading:0
rdb_changes_since_last_save:36276
rdb_bgsave_in_progress:0
rdb_last_save_time:1433496111
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:4
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:9787
total_commands_processed:45631162136
instantaneous_ops_per_sec:5336
rejected_connections:0
sync_full:1
sync_partial_ok:2
sync_partial_err:0
expired_keys:0
evicted_keys:0
keyspace_hits:34233696840
keyspace_misses:64496
pubsub_channels:0
pubsub_patterns:0
latest_fork_usec:24591

# Replication
role:master
connected_slaves:1
slave0:ip=192.168.1.5,port=6379,state=online,offset=862467827791,lag=1
master_repl_offset:862467915661
repl_backlog_active:1
repl_backlog_size:1048576
repl_backlog_first_byte_offset:862466867086
repl_backlog_histlen:1048576

# CPU
used_cpu_sys:700504.88
used_cpu_user:433667.81
used_cpu_sys_children:26926.16
used_cpu_user_children:254138.31

# Keyspace
db0:keys=67,expires=0,avg_ttl=0
db15:keys=17476,expires=0,avg_ttl=0

Ubuntu 14.04下Redis安装及简单测试 http://www.linuxidc.com/Linux/2014-05/101544.htm

Redis集群明细文档 http://www.linuxidc.com/Linux/2013-09/90118.htm

Ubuntu 12.10下安装Redis(图文详解)+ Jedis连接Redis http://www.linuxidc.com/Linux/2013-06/85816.htm

Redis系列-安装部署维护篇 http://www.linuxidc.com/Linux/2012-12/75627.htm

CentOS 6.3安装Redis http://www.linuxidc.com/Linux/2012-12/75314.htm

Redis安装部署学习笔记 http://www.linuxidc.com/Linux/2014-07/104306.htm

Redis配置文件redis.conf 详解 http://www.linuxidc.com/Linux/2013-11/92524.htm

Redis 的详细介绍请点这里
Redis 的下载地址请点这里

本文永久更新链接地址http://www.linuxidc.com/Linux/2015-06/118467.htm

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款