View the version of the remote Redis Server

Source: Internet
Author: User
Tags ssh access redis cluster install redis

View the version of the remote Redis Server

How can I view the version of a remote Redis server?

What should I do if I have no SSH access permission for the remote Redis server and want to know which version of the Redis server is used?

It's easy to install a local Redis instance and use the Redis client command to view the details:

#./Src/redis-cli-h 192.168.1.3 info | grep 'redis _ version'

Redis_version: 2.8.8

You can also view the complete information:

 

#./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.00 M
Used_memory_ RSS: 335597568
Used_memory_peak: 345944184
Used_memory_peak_human: 329.92 M
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

Install and test Redis in Ubuntu 14.04

Redis cluster details

Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis

Redis series-installation, deployment, and maintenance

Install Redis in CentOS 6.3

Learning notes on Redis installation and deployment

Redis. conf

Redis details: click here
Redis: click here

This article permanently updates the link address:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.