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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With