Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out Redis version

Tags:

redis

I am on my box ubuntu 12.04 (precise32), where Redis was installed, but I can not find out the Redis version. How can I resolve this problem?

It was installed using the redisio cookbook.

like image 648
Robert Avatar asked Mar 03 '14 17:03

Robert


People also ask

How do I check my Redis details?

You can check the actual number by running redis-cli config get databases. In interactive mode, the database number is displayed in the prompt within square braces. For example, 127.0. 0.1:6379[13] shows that the 13th database is in use.

What is the Redis latest version?

Redis 6.0. Redis 6.0 (GA October, 2021) introduced SSL, the new RESP3 protocol, ACLs, client side caching, diskless replicas, I/O threads, faster RDB loading, new modules APIs, and many more improvements. See the release notes or download 6.0.16.

How do I know if Redis server is installed?

you can do it by this way. $redis = new Redis(); $redis->connect('127.0. 0.1', 6379); echo $redis->ping(); and then check if it print +PONG , which show redis-server is running.


1 Answers

  • If you want to find the version of the server:

    $ redis-server -v 

    For example in my system I get this result:

    Redis server v=2.8.4 sha=00000000:0 malloc=libc bits=64 build=92637893332b8579 
  • If you want to get the version of the client:

    $ redis-cli -v 
  • If you want to know the version of the server, from the client:

    > INFO 

and the first line is the version of the Redis server.

like image 149
Agis Avatar answered Sep 28 '22 16:09

Agis