Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4130292
  • 博文数量: 626
  • 博客积分: 10
  • 博客等级: 民兵
  • 技术积分: 11080
  • 用 户 组: 普通用户
  • 注册时间: 2012-08-23 13:08
文章分类

全部博文(626)

文章存档

2015年(72)

2014年(48)

2013年(506)

分类: NOSQL

2015-06-05 17:29:27

查看远程Redis服务器的版本
如何查看远程Redis服务器的版本
如果无远程Redis服务器的SSH访问权限,又想知道Redis服务器是哪个版本,该怎么办?
很简单,在本地安装一个Redis,利用Redis客户端命令查看:

点击(此处)折叠或打开

  1. # ./src/redis-cli -h 192.168.1.8 info | grep 'redis_version'
  2. redis_version:2.8.8
还可以看完整的信息:

点击(此处)折叠或打开

  1. # ./src/redis-cli -h 192.168.1.4 info
  2. # Server
  3. redis_version:2.8.8
  4. redis_git_sha1:00000000
  5. redis_git_dirty:0
  6. redis_build_id:43fea591cc6ce090
  7. redis_mode:standalone
  8. os:Linux 2.6.18-308.el5 x86_64
  9. arch_bits:64
  10. multiplexing_api:epoll
  11. gcc_version:4.1.2
  12. process_id:8719
  13. run_id:f69135bba0fd50a55cfeaca56788e963d1a46a38
  14. tcp_port:6379
  15. uptime_in_seconds:14582183
  16. uptime_in_days:168
  17. hz:10
  18. lru_clock:7432791
  19. config_file:/opt/redis/conf/redis.conf

  20. # Clients
  21. connected_clients:198
  22. client_longest_output_list:0
  23. client_biggest_input_buf:0
  24. blocked_clients:0

  25. # Memory
  26. used_memory:305139776
  27. used_memory_human:291.00M
  28. used_memory_rss:335597568
  29. used_memory_peak:345944184
  30. used_memory_peak_human:329.92M
  31. used_memory_lua:29696
  32. mem_fragmentation_ratio:1.10
  33. mem_allocator:jemalloc-3.2.0

  34. # Persistence
  35. loading:0
  36. rdb_changes_since_last_save:36276
  37. rdb_bgsave_in_progress:0
  38. rdb_last_save_time:1433496111
  39. rdb_last_bgsave_status:ok
  40. rdb_last_bgsave_time_sec:4
  41. rdb_current_bgsave_time_sec:-1
  42. aof_enabled:0
  43. aof_rewrite_in_progress:0
  44. aof_rewrite_scheduled:0
  45. aof_last_rewrite_time_sec:-1
  46. aof_current_rewrite_time_sec:-1
  47. aof_last_bgrewrite_status:ok
  48. aof_last_write_status:ok

  49. # Stats
  50. total_connections_received:9787
  51. total_commands_processed:45631162136
  52. instantaneous_ops_per_sec:5336
  53. rejected_connections:0
  54. sync_full:1
  55. sync_partial_ok:2
  56. sync_partial_err:0
  57. expired_keys:0
  58. evicted_keys:0
  59. keyspace_hits:34233696840
  60. keyspace_misses:64496
  61. pubsub_channels:0
  62. pubsub_patterns:0
  63. latest_fork_usec:24591

  64. # Replication
  65. role:master
  66. connected_slaves:1
  67. slave0:ip=192.168.1.5,port=6379,state=online,offset=862467827791,lag=1
  68. master_repl_offset:862467915661
  69. repl_backlog_active:1
  70. repl_backlog_size:1048576
  71. repl_backlog_first_byte_offset:862466867086
  72. repl_backlog_histlen:1048576

  73. # CPU
  74. used_cpu_sys:700504.88
  75. used_cpu_user:433667.81
  76. used_cpu_sys_children:26926.16
  77. used_cpu_user_children:254138.31

  78. # Keyspace
  79. db0:keys=67,expires=0,avg_ttl=0
  80. db15:keys=17476,expires=0,avg_ttl=0

阅读(6195) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

longly11082015-06-11 14:51:36

run_id:f69135bba0fd50a55cfeaca56788e963d1a46a38

14. tcp_port:6379

15. uptime_in_seconds:14582183

16. uptime_in_days:168

17. hz:10

18. lru_clock:7432791

19. config_file:/opt/redis/conf/redis.conf

20.linyijingyesi.com

21. # Clients

22. connected_clients:198

23. client_longest_output_list:0

24. client_biggest_input_buf:0

25. blocked_clients:0

26. linyishangpinfoot.com

27. #&nb