Home  >  Article  >  Database  >  What are the commands to check the redis version on Linux system?

What are the commands to check the redis version on Linux system?

WBOY
WBOYforward
2023-05-31 18:43:072958browse

1. Use the "redis-server –version" command or "redis-server -v", redis-server is in the src directory in the redis installation directory

 [root@db148 redis-2.6.10]# src/redis-server --version
 
 Redis server v=2.6.10 sha=00000000:0 malloc=jemalloc-3.2.0 bits=32
 
 [root@db148 redis-2.6.10]# ./src/redis-server -v
 
 Redis server v=2.6.10 sha=00000000:0 malloc=jemalloc-3.2.0 bits=32

2. Use the "redis-cli –version" command or "redis-cli -v, redis-cli 2 in the src directory in the redis installation directory

 [root@db148 redis-2.6.10]# src/redis-cli --version
 redis-cli 2.6.10
 [root@db148 redis-2.6.10]# src/redis-cli -v
 redis-cli 2.6.10

The above is the detailed content of What are the commands to check the redis version on Linux system?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yisu.com. If there is any infringement, please contact admin@php.cn delete